Package jaxx.compiler.tags.swing
Class ApplicationHandler
java.lang.Object
jaxx.compiler.tags.DefaultObjectHandler
jaxx.compiler.tags.DefaultComponentHandler
jaxx.compiler.tags.swing.JWindowHandler
jaxx.compiler.tags.swing.ApplicationHandler
- All Implemented Interfaces:
TagHandler
public class ApplicationHandler extends JWindowHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class jaxx.compiler.tags.DefaultObjectHandler
DefaultObjectHandler.ProxyEventInfo -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_DEFAULT_CLOSE_OPERATIONstatic java.lang.StringATTRIBUTE_LOOK_AND_FEELFields inherited from class jaxx.compiler.tags.DefaultComponentHandler
ACTION_ICON_ATTRIBUTE, BORDER_ATTRIBUTE, BORDER_FACTORY_PREFIX, CONTAINER_DELEGATE_ATTRIBUTE, FONT_FACE_ATTRIBUTE, FONT_SIZE_ATTRIBUTE, FONT_STYLE_ATTRIBUTE, FONT_WEIGHT_ATTRIBUTE, HEIGHT_ATTRIBUTE, I18N_MNEMONIC_ATTRIBUTE, ICON_ATTRIBUTE, ICON_IMAGE_ATTRIBUTE, log, NAME_ATTRIBUTE, TITLED_BORDER_PREFIX, WIDTH_ATTRIBUTE, X_ATTRIBUTE, Y_ATTRIBUTEFields inherited from class jaxx.compiler.tags.DefaultObjectHandler
ABSTRACT_ATTRIBUTE, BORDER_LAYOUT_PREFIX, CONSTRAINTS_ATTRIBUTE, CONSTRUCTOR_PARAMS_ATTRIBUTE, DECORATOR_ATTRIBUTE, DISPLAYED_MNEMONIC_ATTRIBUTE, DISPLAYED_MNEMONIC_INDEX_ATTRIBUTE, GENERIC_TYPE_ATTRIBUTE, GRID_LAYOUT_PREFIX, HANDLER_ATTRIBUTE, ID_ATTRIBUTE, IMPLEMENTS_ATTRIBUTE, INITIALIZER_ATTRIBUTE, JAVA_BEAN_ATTRIBUTE, jaxxBeanInfo, LAYOUT_ATTRIBUTE, MNEMONIC_ATTRIBUTE, objectMap, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTEFields inherited from interface jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE -
Constructor Summary
Constructors Constructor Description ApplicationHandler(ClassDescriptor beanClass) -
Method Summary
Modifier and Type Method Description voidsetAttribute(CompiledObject object, java.lang.String propertyName, java.lang.String stringValue, boolean inline, JAXXCompiler compiler)Set a single property on an object.protected voidsetDefaults(CompiledObject object, org.w3c.dom.Element tag, JAXXCompiler compiler)Initializes the default settings of the object, prior to setting its attribute values.Methods inherited from class jaxx.compiler.tags.swing.JWindowHandler
compileSecondPass, createCompiledObject, openComponentMethods inherited from class jaxx.compiler.tags.DefaultComponentHandler
closeComponent, compileFirstPass, configureProxyEventInfo, constantValue, getContainerDelegate, getGetPropertyCode, getPropertyType, getSetPropertyCode, init, isContainer, isPropertyInherited, scanAttributesForDependenciesMethods inherited from class jaxx.compiler.tags.DefaultObjectHandler
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, getAttributeComparator, getAttributeOrdering, getBeanClass, getEventClass, getEventInfo, getJAXXBeanInfo, getJAXXBeanInfo, isEventHandlerName, isMemberBound, registerCompiledObject, safeInit, setAttributeFromCss, setAttributes, setProperty, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
ATTRIBUTE_LOOK_AND_FEEL
public static final java.lang.String ATTRIBUTE_LOOK_AND_FEEL- See Also:
- Constant Field Values
-
ATTRIBUTE_DEFAULT_CLOSE_OPERATION
public static final java.lang.String ATTRIBUTE_DEFAULT_CLOSE_OPERATION- See Also:
- Constant Field Values
-
-
Constructor Details
-
ApplicationHandler
-
-
Method Details
-
setAttribute
public void setAttribute(CompiledObject object, java.lang.String propertyName, java.lang.String stringValue, boolean inline, JAXXCompiler compiler) throws CompilerExceptionDescription copied from class:DefaultObjectHandlerSet a single property on an object. The value may be either a simple value or contain data binding expressions. Simple values are first converted to the property's type usingDefaultObjectHandler.convertFromString(String, String, Class).- Overrides:
setAttributein classDefaultComponentHandler- Parameters:
object- the object on which to set the propertypropertyName- the name of the property to setstringValue- the raw string value of the property from the XMLinline-trueif the value was directly specified as an inline class tag attribute,falseotherwise (a default value, specified in CSS, etc.)compiler- the currentJAXXCompiler- Throws:
CompilerException
-
setDefaults
protected void setDefaults(CompiledObject object, org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerExceptionDescription copied from class:DefaultObjectHandlerInitializes the default settings of the object, prior to setting its attribute values. The default implementation does nothing.- Overrides:
setDefaultsin classDefaultComponentHandler- Parameters:
object- the object to initializetag- the tag being compiledcompiler- the currentJAXXCompiler- Throws:
CompilerException
-