jaxx.compiler.tags.swing
Class ApplicationHandler

java.lang.Object
  extended by jaxx.compiler.tags.DefaultObjectHandler
      extended by jaxx.compiler.tags.DefaultComponentHandler
          extended by jaxx.compiler.tags.swing.JWindowHandler
              extended by jaxx.compiler.tags.swing.ApplicationHandler
All Implemented Interfaces:
TagHandler

public class ApplicationHandler
extends JWindowHandler


Field Summary
 
Fields inherited from class jaxx.compiler.tags.DefaultComponentHandler
ACTION_ICON_ATTRIBUTE, CONTAINER_DELEGATE_ATTRIBUTE, FONT_FACE_ATTRIBUTE, FONT_SIZE_ATTRIBUTE, FONT_STYLE_ATTRIBUTE, FONT_WEIGHT_ATTRIBUTE, HEIGHT_ATTRIBUTE, ICON_ATTRIBUTE, log, NAME_ATTRIBUTE, WIDTH_ATTRIBUTE, X_ATTRIBUTE, Y_ATTRIBUTE
 
Fields inherited from class jaxx.compiler.tags.DefaultObjectHandler
ABSTRACT_ATTRIBUTE, CONSTRAINTS_ATTRIBUTE, CONSTRUCTOR_PARAMS_ATTRIBUTE, DECORATOR_ATTRIBUTE, DISPLAYED_MNEMONIC_ATTRIBUTE, DISPLAYED_MNEMONIC_INDEX_ATTRIBUTE, GENERICTYPE_ATTRIBUTE, 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
ApplicationHandler(ClassDescriptor beanClass)
           
 
Method Summary
 void setAttribute(CompiledObject object, java.lang.String propertyName, java.lang.String stringValue, boolean inline, JAXXCompiler compiler)
          Set a single property on an object.
protected  void setDefaults(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, openComponent
 
Methods inherited from class jaxx.compiler.tags.DefaultComponentHandler
closeComponent, compileFirstPass, configureProxyEventInfo, constantValue, getContainerDelegate, getGetPropertyCode, getPropertyType, getSetPropertyCode, init, isContainer, isPropertyInherited, scanAttributesForDependencies
 
Methods inherited from class jaxx.compiler.tags.DefaultObjectHandler
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, compileChildrenFirstPass, compileChildrenSecondPass, compileChildTagFirstPass, compileChildTagSecondPass, convertFromString, getAddMemberListenerCode, getAttributeComparator, getAttributeOrdering, getBeanClass, getJAXXBeanInfo, getJAXXBeanInfo, getRemoveMemberListenerCode, isEventHandlerName, isMemberBound, registerCompiledObject, safeInit, setAttributes, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationHandler

public ApplicationHandler(ClassDescriptor beanClass)
Method Detail

setAttribute

public void setAttribute(CompiledObject object,
                         java.lang.String propertyName,
                         java.lang.String stringValue,
                         boolean inline,
                         JAXXCompiler compiler)
                  throws CompilerException
Description copied from class: DefaultObjectHandler
Set 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 using DefaultObjectHandler.convertFromString(java.lang.String, java.lang.String, java.lang.Class).

Overrides:
setAttribute in class DefaultComponentHandler
Parameters:
object - the object on which to set the property
propertyName - the name of the property to set
stringValue - the raw string value of the property from the XML
inline - true if the value was directly specified as an inline class tag attribute, false otherwise (a default value, specified in CSS, etc.)
compiler - the current JAXXCompiler
Throws:
CompilerException

setDefaults

protected void setDefaults(CompiledObject object,
                           org.w3c.dom.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


Copyright © 2008-2009 CodeLutin. All Rights Reserved.