jaxx.compiler.tags.swing
Class JTextComponentHandler

java.lang.Object
  extended by jaxx.compiler.tags.DefaultObjectHandler
      extended by jaxx.compiler.tags.DefaultComponentHandler
          extended by 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 jaxx.compiler.tags.DefaultObjectHandler
DefaultObjectHandler.ProxyEventInfo
 
Field Summary
static String ATTRIBUTE_COLUMNS
           
static String ATTRIBUTE_LINE_WRAP
           
static String ATTRIBUTE_TEXT
           
static String ATTRIBUTE_WRAP_STYLE_WORD
           
 
Fields 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, ICON_ATTRIBUTE, ICON_IMAGE_ATTRIBUTE, log, NAME_ATTRIBUTE, TITLED_BORDER_PREFIX, WIDTH_ATTRIBUTE, X_ATTRIBUTE, Y_ATTRIBUTE
 
Fields 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, GENERICTYPE_ATTRIBUTE, GRID_LAYOUT_PREFIX, ID_ATTRIBUTE, IMPLEMENTS_ATTRIBUTE, INITIALIZER_ATTRIBUTE, JAVA_BEAN_ATTRIBUTE, jaxxBeanInfo, LAYOUT_ATTRIBUTE, MNEMONIC_ATTRIBUTE, objectMap, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTE
 
Fields inherited from interface jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE
 
Constructor Summary
JTextComponentHandler(ClassDescriptor beanClass)
           
 
Method Summary
protected  void configureProxyEventInfo()
          Configures the event handling for members which do not fire PropertyChangeEvent when modified.
protected  int getAttributeOrdering(Attr attr)
          Returns the priority with which a particular attribute should be processed.
 String getSetPropertyCode(String id, String name, String valueCode, JAXXCompiler compiler)
          Returns a snippet of Java code which will set an object property at runtime.
protected  void setDefaults(CompiledObject object, Element tag, JAXXCompiler compiler)
          Initializes the default settings of the object, prior to setting its attribute values.
 
Methods inherited from class jaxx.compiler.tags.DefaultComponentHandler
closeComponent, compileFirstPass, compileSecondPass, constantValue, getContainerDelegate, getGetPropertyCode, getPropertyType, init, isContainer, isPropertyInherited, openComponent, scanAttributesForDependencies, setAttribute
 
Methods inherited from class jaxx.compiler.tags.DefaultObjectHandler
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, createCompiledObject, getAttributeComparator, getBeanClass, getEventClass, getEventInfo, getJAXXBeanInfo, getJAXXBeanInfo, isEventHandlerName, isMemberBound, registerCompiledObject, safeInit, setAttributes, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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: DefaultObjectHandler
Initializes the default settings of the object, prior to setting its attribute values. The default implementation does nothing.

Overrides:
setDefaults in class DefaultComponentHandler
Parameters:
object - the object to initialize
tag - the tag being compiled
compiler - the current JAXXCompiler
Throws:
CompilerException

getSetPropertyCode

public String getSetPropertyCode(String id,
                                 String name,
                                 String valueCode,
                                 JAXXCompiler compiler)
                          throws CompilerException
Description copied from class: DefaultObjectHandler
Returns a snippet of Java code which will set an object property at runtime. Typically the code is just a call to the property's set method, but it can be arbitrarily complex.

Overrides:
getSetPropertyCode in class DefaultComponentHandler
Parameters:
id - Java code for the object whose property is being set
name - the name of the property to set
valueCode - Java expression representing the value to set the property to
compiler - the current JAXXCompiler
Returns:
the snippet
Throws:
CompilerException - if a compilation error occurs

getAttributeOrdering

protected int getAttributeOrdering(Attr attr)
Description copied from class: DefaultObjectHandler
Returns the priority with which a particular attribute should be processed. Lower numbers should be processed before higher numbers. This value is used by the DefaultObjectHandler.getAttributeComparator() method to define the sort ordering.

Overrides:
getAttributeOrdering in class DefaultObjectHandler
Parameters:
attr - the attribute to treate
Returns:
the attribute's priority

configureProxyEventInfo

protected void configureProxyEventInfo()
Description copied from class: DefaultObjectHandler
Configures the event handling for members which do not fire PropertyChangeEvent when modified. The default implementation does nothing. Subclasses should override this method to call addProxyEventInfo for each member which requires special handling.

Overrides:
configureProxyEventInfo in class DefaultComponentHandler


Copyright © 2008-2012 CodeLutin. All Rights Reserved.