Class JTextComponentHandler
- java.lang.Object
-
- org.nuiton.jaxx.compiler.tags.DefaultObjectHandler
-
- org.nuiton.jaxx.compiler.tags.DefaultComponentHandler
-
- org.nuiton.jaxx.compiler.tags.swing.JTextComponentHandler
-
- All Implemented Interfaces:
TagHandler
- Direct Known Subclasses:
JPasswordFieldHandler
public class JTextComponentHandler extends DefaultComponentHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuiton.jaxx.compiler.tags.DefaultObjectHandler
DefaultObjectHandler.ProxyEventInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_COLUMNSstatic StringATTRIBUTE_LINE_WRAPstatic StringATTRIBUTE_TEXTstatic StringATTRIBUTE_WRAP_STYLE_WORD-
Fields inherited from class org.nuiton.jaxx.compiler.tags.DefaultComponentHandler
ACTION_ICON_ATTRIBUTE, ADD_TO_CONTAINER_ATTRIBUTE, BEAN_SCOPE_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_ATTRIBUTE, TITLED_BORDER_PREFIX, WIDTH_ATTRIBUTE, X_ATTRIBUTE, Y_ATTRIBUTE
-
Fields inherited from class org.nuiton.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, I18N_ATTRIBUTE, I18N_PROPERTY_ATTRIBUTE, ID_ATTRIBUTE, IMPLEMENTS_ATTRIBUTE, INITIALIZER_ATTRIBUTE, JAVA_BEAN_ATTRIBUTE, jaxxBeanInfo, LAYOUT_ATTRIBUTE, MNEMONIC_ATTRIBUTE, objectMap, OVERRIDE_PARAMETER, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTE
-
Fields inherited from interface org.nuiton.jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description JTextComponentHandler(ClassDescriptor beanClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureProxyEventInfo()Configures the event handling for members which do not firePropertyChangeEventwhen modified.protected intgetAttributeOrdering(Attr attr)Returns the priority with which a particular attribute should be processed.protected voidsetDefaults(CompiledObject object, Element tag, JAXXCompiler compiler)Initializes the default settings of the object, prior to setting its attribute values.-
Methods inherited from class org.nuiton.jaxx.compiler.tags.DefaultComponentHandler
closeComponent, compileFirstPass, compileSecondPass, constantValue, getContainerDelegate, getGetPropertyCode, getPropertyType, getSetPropertyCode, init, isContainer, isPropertyInherited, openComponent, scanAttributesForDependencies, setAttribute
-
Methods inherited from class org.nuiton.jaxx.compiler.tags.DefaultObjectHandler
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, cleanConstructorParams, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, createCompiledObject, getAttributeComparator, getBeanClass, getEventClass, getEventInfo, getJAXXBeanInfo, getJAXXBeanInfo, getSafeCompiledObject, isEventHandlerName, isMemberBound, registerCompiledObject, safeInit, setAttributeFromCss, setAttributes, setProperty, toString
-
-
-
-
Field Detail
-
ATTRIBUTE_LINE_WRAP
public static final String ATTRIBUTE_LINE_WRAP
- See Also:
- Constant Field Values
-
ATTRIBUTE_WRAP_STYLE_WORD
public static final String ATTRIBUTE_WRAP_STYLE_WORD
- See Also:
- Constant Field Values
-
ATTRIBUTE_COLUMNS
public static final String ATTRIBUTE_COLUMNS
- See Also:
- Constant Field Values
-
ATTRIBUTE_TEXT
public static final String ATTRIBUTE_TEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JTextComponentHandler
public JTextComponentHandler(ClassDescriptor beanClass)
-
-
Method Detail
-
setDefaults
protected void setDefaults(CompiledObject object, Element tag, JAXXCompiler compiler) throws CompilerException
Description 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
-
getAttributeOrdering
protected int getAttributeOrdering(Attr attr)
Description copied from class:DefaultObjectHandlerReturns the priority with which a particular attribute should be processed. Lower numbers should be processed before higher numbers. This value is used by theDefaultObjectHandler.getAttributeComparator()method to define the sort ordering.- Overrides:
getAttributeOrderingin classDefaultObjectHandler- Parameters:
attr- the attribute to treate- Returns:
- the attribute's priority
-
configureProxyEventInfo
protected void configureProxyEventInfo()
Description copied from class:DefaultObjectHandlerConfigures the event handling for members which do not firePropertyChangeEventwhen modified. The default implementation does nothing. Subclasses should override this method to calladdProxyEventInfofor each member which requires special handling.- Overrides:
configureProxyEventInfoin classDefaultComponentHandler
-
-