Package jaxx.compiler.tags.swing
Class TabHandler
- java.lang.Object
-
- jaxx.compiler.tags.swing.TabHandler
-
- All Implemented Interfaces:
TagHandler
public class TabHandler extends Object implements TagHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_BACKGROUNDstatic StringATTRIBUTE_DISABLED_ICONstatic StringATTRIBUTE_DISPLAYED_MNEMONIC_INDEXstatic StringATTRIBUTE_ENABLEDstatic StringATTRIBUTE_FOREGROUNDstatic StringATTRIBUTE_ICONstatic StringATTRIBUTE_IDstatic StringATTRIBUTE_MNEMONICstatic StringATTRIBUTE_TAB_COMPONENTstatic StringATTRIBUTE_TITLEstatic StringATTRIBUTE_TOOL_TIP_TEXTstatic StringTAG_NAME-
Fields inherited from interface jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description TabHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompileChildrenFirstPass(Element tag, JAXXCompiler compiler)protected voidcompileChildrenSecondPass(Element tag, JAXXCompiler compiler)protected voidcompileChildTagFirstPass(Element tag, JAXXCompiler compiler)protected voidcompileChildTagSecondPass(Element tag, JAXXCompiler compiler)voidcompileFirstPass(Element tag, JAXXCompiler compiler)Performs the first pass of compilation on an XML tag from a JAXX source file.voidcompileSecondPass(Element tag, JAXXCompiler compiler)Performs the second pass of compilation on an XML tag from a JAXX source file.static voidsetAttribute(CompiledObject compiledTabInfo, JTabbedPaneHandler.CompiledTabbedPane tabs, String name, String value, JAXXCompiler compiler)voidsetAttributes(CompiledObject compiledTabInfo, JTabbedPaneHandler.CompiledTabbedPane tabs, Element tag, JAXXCompiler compiler)
-
-
-
Field Detail
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
ATTRIBUTE_ID
public static final String ATTRIBUTE_ID
- See Also:
- Constant Field Values
-
ATTRIBUTE_TITLE
public static final String ATTRIBUTE_TITLE
- See Also:
- Constant Field Values
-
ATTRIBUTE_TOOL_TIP_TEXT
public static final String ATTRIBUTE_TOOL_TIP_TEXT
- See Also:
- Constant Field Values
-
ATTRIBUTE_ICON
public static final String ATTRIBUTE_ICON
- See Also:
- Constant Field Values
-
ATTRIBUTE_ENABLED
public static final String ATTRIBUTE_ENABLED
- See Also:
- Constant Field Values
-
ATTRIBUTE_DISABLED_ICON
public static final String ATTRIBUTE_DISABLED_ICON
- See Also:
- Constant Field Values
-
ATTRIBUTE_MNEMONIC
public static final String ATTRIBUTE_MNEMONIC
- See Also:
- Constant Field Values
-
ATTRIBUTE_DISPLAYED_MNEMONIC_INDEX
public static final String ATTRIBUTE_DISPLAYED_MNEMONIC_INDEX
- See Also:
- Constant Field Values
-
ATTRIBUTE_FOREGROUND
public static final String ATTRIBUTE_FOREGROUND
- See Also:
- Constant Field Values
-
ATTRIBUTE_BACKGROUND
public static final String ATTRIBUTE_BACKGROUND
- See Also:
- Constant Field Values
-
ATTRIBUTE_TAB_COMPONENT
public static final String ATTRIBUTE_TAB_COMPONENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
compileFirstPass
public void compileFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
Description copied from interface:TagHandlerPerforms the first pass of compilation on an XML tag from a JAXX source file.TagHandlerimplementations affect the generated.javafile by calling methods in theJAXXCompiler.- Specified by:
compileFirstPassin interfaceTagHandler- Parameters:
tag- the XML tag to compilecompiler- the active JAXXCompiler- Throws:
CompilerException- if a compilation error occursIOException- if an I/O error occurs
-
compileSecondPass
public void compileSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
Description copied from interface:TagHandlerPerforms the second pass of compilation on an XML tag from a JAXX source file.TagHandlerimplementations affect the generated.javafile by calling methods in theJAXXCompiler.- Specified by:
compileSecondPassin interfaceTagHandler- Parameters:
tag- the XML tag to compilecompiler- the active JAXXCompiler- Throws:
CompilerException- if a compilation error occursIOException- if an I/O error occurs
-
setAttribute
public static void setAttribute(CompiledObject compiledTabInfo, JTabbedPaneHandler.CompiledTabbedPane tabs, String name, String value, JAXXCompiler compiler) throws CompilerException
- Throws:
CompilerException
-
setAttributes
public void setAttributes(CompiledObject compiledTabInfo, JTabbedPaneHandler.CompiledTabbedPane tabs, Element tag, JAXXCompiler compiler) throws CompilerException
- Throws:
CompilerException
-
compileChildrenFirstPass
protected void compileChildrenFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
compileChildTagFirstPass
protected void compileChildTagFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
compileChildrenSecondPass
protected void compileChildrenSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
compileChildTagSecondPass
protected void compileChildTagSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
-