Class CellHandler
- java.lang.Object
-
- org.nuiton.jaxx.compiler.tags.swing.CellHandler
-
- All Implemented Interfaces:
TagHandler
public class CellHandler extends Object implements TagHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_ANCHORstatic StringATTRIBUTE_COLUMNSstatic StringATTRIBUTE_FILLstatic StringATTRIBUTE_INSETSstatic StringATTRIBUTE_ROWSstatic StringATTRIBUTE_WEIGHTXstatic StringATTRIBUTE_WEIGHTYstatic StringTAG_NAME-
Fields inherited from interface org.nuiton.jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description CellHandler()
-
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(GridBagConstraints c, String name, String value)static voidsetAttributes(GridBagConstraints c, Element tag)
-
-
-
Field Detail
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
ATTRIBUTE_INSETS
public static final String ATTRIBUTE_INSETS
- See Also:
- Constant Field Values
-
ATTRIBUTE_WEIGHTX
public static final String ATTRIBUTE_WEIGHTX
- See Also:
- Constant Field Values
-
ATTRIBUTE_WEIGHTY
public static final String ATTRIBUTE_WEIGHTY
- See Also:
- Constant Field Values
-
ATTRIBUTE_COLUMNS
public static final String ATTRIBUTE_COLUMNS
- See Also:
- Constant Field Values
-
ATTRIBUTE_ROWS
public static final String ATTRIBUTE_ROWS
- See Also:
- Constant Field Values
-
ATTRIBUTE_FILL
public static final String ATTRIBUTE_FILL
- See Also:
- Constant Field Values
-
ATTRIBUTE_ANCHOR
public static final String ATTRIBUTE_ANCHOR
- 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(GridBagConstraints c, String name, String value) throws CompilerException
- Throws:
CompilerException
-
setAttributes
public static void setAttributes(GridBagConstraints c, Element tag) throws CompilerException
- Throws:
CompilerException
-
compileChildrenFirstPass
protected void compileChildrenFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
compileChildrenSecondPass
protected void compileChildrenSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
compileChildTagFirstPass
protected void compileChildTagFirstPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
compileChildTagSecondPass
protected void compileChildTagSecondPass(Element tag, JAXXCompiler compiler) throws CompilerException, IOException
- Throws:
CompilerExceptionIOException
-
-