public class TabWithValidatorHandler extends DefaultObjectHandler
DefaultObjectHandler.ProxyEventInfo| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_BACKGROUND |
static String |
ATTRIBUTE_DISABLED_ICON |
static String |
ATTRIBUTE_DISPLAYED_MNEMONIC_INDEX |
static String |
ATTRIBUTE_ENABLED |
static String |
ATTRIBUTE_FOREGROUND |
static String |
ATTRIBUTE_ICON |
static String |
ATTRIBUTE_ID |
static String |
ATTRIBUTE_MNEMONIC |
static String |
ATTRIBUTE_TAB_COMPONENT |
static String |
ATTRIBUTE_TITLE |
static String |
ATTRIBUTE_TOOL_TIP_TEXT |
static String |
ATTRIBUTE_VALIDATOR_ID |
protected static Map<JAXXCompiler,List<TabInfoWithValidator>> |
tabs |
static String |
TAG_NAME |
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, STYLE_CLASS_ATTRIBUTE, SUPER_GENERIC_TYPE_ATTRIBUTEXMLNS_ATTRIBUTE| Constructor and Description |
|---|
TabWithValidatorHandler(ClassDescriptor beanClass)
Creates a new
DefaultObjectHandler which provides support for the specified class. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compileChildrenFirstPass(Element tag,
JAXXCompiler compiler)
Compiles the child tags of the current tag.
|
protected void |
compileChildrenSecondPass(Element tag,
JAXXCompiler compiler)
Compiles the child tags of the current tag.
|
protected void |
compileChildTagFirstPass(Element tag,
JAXXCompiler compiler)
Compiles a child of the current tag.
|
protected void |
compileChildTagSecondPass(Element tag,
JAXXCompiler compiler)
Compiles a child of the current tag.
|
void |
compileFirstPass(Element tag,
JAXXCompiler compiler)
Performs the first pass of compilation on an XML tag from a JAXX source file.
|
void |
compileSecondPass(Element tag,
JAXXCompiler compiler)
Performs the second pass of compilation on an XML tag from a JAXX source file.
|
protected CompiledObject |
createCompiledObject(String id,
JAXXCompiler compiler)
Creates the
CompiledObject which will represent the object
created by this TagHandler. |
static List<TabInfoWithValidator> |
getTabs(JAXXCompiler compiler) |
void |
setAttribute(CompiledObject object,
String propertyName,
String stringValue,
boolean inline,
JAXXCompiler compiler)
Set a single property on an object.
|
static void |
setAttribute(CompiledObject compiledTabInfo,
TabInfoWithValidator tabInfo,
String name,
String value,
JAXXCompiler compiler) |
void |
setAttributes(CompiledObject compiledTabInfo,
JTabbedPaneHandler.CompiledTabbedPane tabs,
Element tag,
JAXXCompiler compiler) |
addEventHandler, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, addProxyEventInfo, applyStylesheets, configureProxyEventInfo, constantValue, convertFromString, getAttributeComparator, getAttributeOrdering, getBeanClass, getEventClass, getEventInfo, getGetPropertyCode, getJAXXBeanInfo, getJAXXBeanInfo, getPropertyType, getSetPropertyCode, init, isEventHandlerName, isMemberBound, isPropertyInherited, registerCompiledObject, safeInit, scanAttributesForDependencies, setAttributeFromCss, setAttributes, setDefaults, setProperty, toStringpublic static final String TAG_NAME
public static final String ATTRIBUTE_ID
public static final String ATTRIBUTE_TITLE
public static final String ATTRIBUTE_TOOL_TIP_TEXT
public static final String ATTRIBUTE_ICON
public static final String ATTRIBUTE_ENABLED
public static final String ATTRIBUTE_DISABLED_ICON
public static final String ATTRIBUTE_MNEMONIC
public static final String ATTRIBUTE_DISPLAYED_MNEMONIC_INDEX
public static final String ATTRIBUTE_FOREGROUND
public static final String ATTRIBUTE_BACKGROUND
public static final String ATTRIBUTE_TAB_COMPONENT
public static final String ATTRIBUTE_VALIDATOR_ID
protected static final Map<JAXXCompiler,List<TabInfoWithValidator>> tabs
public TabWithValidatorHandler(ClassDescriptor beanClass)
DefaultObjectHandler which provides support for the specified class. The
class is not actually introspected until the compileFirstPass(org.w3c.dom.Element, org.nuiton.jaxx.compiler.JAXXCompiler) method is invoked.beanClass - the class which this handler supportspublic static void setAttribute(CompiledObject compiledTabInfo, TabInfoWithValidator tabInfo, String name, String value, JAXXCompiler compiler) throws CompilerException
CompilerExceptionpublic static List<TabInfoWithValidator> getTabs(JAXXCompiler compiler)
public void compileFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
TagHandlerTagHandler implementations affect the generated .java
file by calling methods in the JAXXCompiler.compileFirstPass in interface TagHandlercompileFirstPass in class DefaultObjectHandlertag - the XML tag to compilecompiler - the active JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occursprotected CompiledObject createCompiledObject(String id, JAXXCompiler compiler)
DefaultObjectHandlerCompiledObject which will represent the object
created by this TagHandler.createCompiledObject in class DefaultObjectHandlerid - the CompiledObject's ID.compiler - compiler to useCompiledObject to usepublic void compileSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
TagHandlerTagHandler implementations affect the generated .java
file by calling methods in the JAXXCompiler.compileSecondPass in interface TagHandlercompileSecondPass in class DefaultObjectHandlertag - the XML tag to compilecompiler - the active JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occurspublic void setAttribute(CompiledObject object, String propertyName, String stringValue, boolean inline, JAXXCompiler compiler)
DefaultObjectHandlerDefaultObjectHandler.convertFromString(String, String, Class).setAttribute in class DefaultObjectHandlerobject - 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 - 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 JAXXCompilerpublic void setAttributes(CompiledObject compiledTabInfo, JTabbedPaneHandler.CompiledTabbedPane tabs, Element tag, JAXXCompiler compiler) throws CompilerException
CompilerExceptionprotected void compileChildrenFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
DefaultObjectHandlerDefaultObjectHandler.compileChildTagFirstPass(org.w3c.dom.Element, org.nuiton.jaxx.compiler.JAXXCompiler)
for each child tag.compileChildrenFirstPass in class DefaultObjectHandlertag - the tag whose children to runcompiler - the current JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occursprotected void compileChildTagFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
DefaultObjectHandlerJAXXCompiler.compileFirstPass.compileChildTagFirstPass in class DefaultObjectHandlertag - the child tag to runcompiler - the current JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occursprotected void compileChildrenSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
DefaultObjectHandlerDefaultObjectHandler.compileChildTagFirstPass(org.w3c.dom.Element, org.nuiton.jaxx.compiler.JAXXCompiler)
for each child tag.compileChildrenSecondPass in class DefaultObjectHandlertag - the tag whose children to runcompiler - the current JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occursprotected void compileChildTagSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
DefaultObjectHandlerJAXXCompiler.compileSecondPass.compileChildTagSecondPass in class DefaultObjectHandlertag - the child tag to runcompiler - the current JAXXCompilerCompilerException - if a compilation error occursIOException - if an I/O error occursCopyright © 2008–2018 Ultreia.io. All rights reserved.