Package jaxx.compiler.tags.swing
Class CellHandler
java.lang.Object
jaxx.compiler.tags.swing.CellHandler
- All Implemented Interfaces:
TagHandler
public class CellHandler extends java.lang.Object implements TagHandler
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_ANCHORstatic java.lang.StringATTRIBUTE_COLUMNSstatic java.lang.StringATTRIBUTE_FILLstatic java.lang.StringATTRIBUTE_INSETSstatic java.lang.StringATTRIBUTE_ROWSstatic java.lang.StringATTRIBUTE_WEIGHTXstatic java.lang.StringATTRIBUTE_WEIGHTYstatic java.lang.StringTAG_NAMEFields inherited from interface jaxx.compiler.tags.TagHandler
XMLNS_ATTRIBUTE -
Constructor Summary
Constructors Constructor Description CellHandler() -
Method Summary
Modifier and Type Method Description protected voidcompileChildrenFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler)protected voidcompileChildrenSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler)protected voidcompileChildTagFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler)protected voidcompileChildTagSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler)voidcompileFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler)Performs the first pass of compilation on an XML tag from a JAXX source file.voidcompileSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler)Performs the second pass of compilation on an XML tag from a JAXX source file.static voidsetAttribute(java.awt.GridBagConstraints c, java.lang.String name, java.lang.String value)static voidsetAttributes(java.awt.GridBagConstraints c, org.w3c.dom.Element tag)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TAG_NAME
public static final java.lang.String TAG_NAME- See Also:
- Constant Field Values
-
ATTRIBUTE_INSETS
public static final java.lang.String ATTRIBUTE_INSETS- See Also:
- Constant Field Values
-
ATTRIBUTE_WEIGHTX
public static final java.lang.String ATTRIBUTE_WEIGHTX- See Also:
- Constant Field Values
-
ATTRIBUTE_WEIGHTY
public static final java.lang.String ATTRIBUTE_WEIGHTY- See Also:
- Constant Field Values
-
ATTRIBUTE_COLUMNS
public static final java.lang.String ATTRIBUTE_COLUMNS- See Also:
- Constant Field Values
-
ATTRIBUTE_ROWS
public static final java.lang.String ATTRIBUTE_ROWS- See Also:
- Constant Field Values
-
ATTRIBUTE_FILL
public static final java.lang.String ATTRIBUTE_FILL- See Also:
- Constant Field Values
-
ATTRIBUTE_ANCHOR
public static final java.lang.String ATTRIBUTE_ANCHOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
CellHandler
public CellHandler()
-
-
Method Details
-
compileFirstPass
public void compileFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOExceptionDescription 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 occursjava.io.IOException- if an I/O error occurs
-
compileSecondPass
public void compileSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOExceptionDescription 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 occursjava.io.IOException- if an I/O error occurs
-
setAttribute
public static void setAttribute(java.awt.GridBagConstraints c, java.lang.String name, java.lang.String value) throws CompilerException- Throws:
CompilerException
-
setAttributes
public static void setAttributes(java.awt.GridBagConstraints c, org.w3c.dom.Element tag) throws CompilerException- Throws:
CompilerException
-
compileChildrenFirstPass
protected void compileChildrenFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOException- Throws:
CompilerExceptionjava.io.IOException
-
compileChildrenSecondPass
protected void compileChildrenSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOException- Throws:
CompilerExceptionjava.io.IOException
-
compileChildTagFirstPass
protected void compileChildTagFirstPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOException- Throws:
CompilerExceptionjava.io.IOException
-
compileChildTagSecondPass
protected void compileChildTagSecondPass(org.w3c.dom.Element tag, JAXXCompiler compiler) throws CompilerException, java.io.IOException- Throws:
CompilerExceptionjava.io.IOException
-