Package adams.doc.xhtml
Class Table
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- adams.doc.xml.AbstractTag
-
- adams.doc.xml.AbstractComplexTag
-
- adams.doc.xhtml.Table
-
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
public class Table extends AbstractComplexTag
Represents the "informaltable" tag.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_NumCols
the number of columns in the table.-
Fields inherited from class adams.doc.xml.AbstractComplexTag
m_AllowEmpty
-
Fields inherited from class adams.doc.xml.AbstractTag
m_Attributes
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description Table(int numCols)
Initializes the tag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractComplexTag
addRow(AbstractTag[] cells)
Adds the row.AbstractComplexTag
addRow(AbstractTag[] cells, String align, String valign)
Adds the row.AbstractComplexTag
addRow(String[] cells)
Adds the row.AbstractComplexTag
addRow(String[] cells, String align, String valign)
Adds the row.int
getNumCols()
Returns the number of columns in the table.-
Methods inherited from class adams.doc.xml.AbstractComplexTag
appendContent, hasContent, toXML
-
Methods inherited from class adams.doc.xml.AbstractTag
appendEndTag, appendStartTag, doInsert, doValidate, getAttribute, getIndentation, getTag, hasAttribute, insert, isValidChild, postInsert, preInsert, removeAttribute, setAttribute, toEntities, validate
-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
-
-
-
-
Method Detail
-
getNumCols
public int getNumCols()
Returns the number of columns in the table.- Returns:
- the number of columns
-
addRow
public AbstractComplexTag addRow(String[] cells)
Adds the row.- Parameters:
cells
- the cells of the row- Returns:
- the row element
-
addRow
public AbstractComplexTag addRow(String[] cells, String align, String valign)
Adds the row.- Parameters:
cells
- the cells of the rowalign
- the horizontal alignmentvalign
- the vertical alignment- Returns:
- the row element
-
addRow
public AbstractComplexTag addRow(AbstractTag[] cells)
Adds the row.- Parameters:
cells
- the cells of the row- Returns:
- the row element
-
addRow
public AbstractComplexTag addRow(AbstractTag[] cells, String align, String valign)
Adds the row.- Parameters:
cells
- the cells of the rowalign
- the horizontal alignmentvalign
- the vertical alignment- Returns:
- the row element
-
-