| java.lang.Object nextapp.echo2.webcontainer.syncpeer.TriCellTable
TriCellTable | class TriCellTable (Code) | | Renders an HTML table that has two or three "container" cells and
independently settable margins between them. These tables are useful for
rendering buttons that have two or three elements (images, text labels, and
state indicators). This class supports all possible permutations for
placement of each of the two or three contained components.
This class should not be extended or used by classes outside of the
Echo framework.
|
Constructor Summary | |
| TriCellTable(RenderContext rc, Document document, String id, int orientation0_1, Extent margin0_1) Creates a two-celled TriCellTable . | | TriCellTable(RenderContext rc, Document document, String id, int orientation0_1, Extent margin0_1, int orientation01_2, Extent margin01_2) Creates a three-celled TriCellTable . |
Method Summary | |
void | addCellCssText(String cssText) Appends CSS text to the 'style' attribute of each table cell 'td'
element. | Element | getMarginTdElement(int index) Returns the specified margin element.
Parameters: index - The index of the table element to return. | Element | getTableElement() Returns the created table element. | Element | getTdElement(int index) Returns the specified container element.
Parameters: index - The index of the table element to return. |
BOTTOM_TOP | final public static int BOTTOM_TOP(Code) | | |
INVERTED | final static int INVERTED(Code) | | |
LEADING_TRAILING | final public static int LEADING_TRAILING(Code) | | |
TOP_BOTTOM | final public static int TOP_BOTTOM(Code) | | |
TRAILING_LEADING | final public static int TRAILING_LEADING(Code) | | |
VERTICAL | final static int VERTICAL(Code) | | |
TriCellTable | TriCellTable(RenderContext rc, Document document, String id, int orientation0_1, Extent margin0_1)(Code) | | Creates a two-celled TriCellTable .
Parameters: rc - the relevant RenderContext Parameters: document - the outgoing XML document Parameters: id - the id of the root element Parameters: orientation0_1 - The orientation of Element 0 with respect to Element 1, one of the following values:- LEFT_RIGHT (element 0 is to the left of element 1)
- RIGHT_LEFT (element 1 is to the left of element 0)
- TOP_BOTTOM (element 0 is above element 1)
- BOTTOM_TOP (element 1 is above element 0)
Parameters: margin0_1 - The margin size between element 0 and element 1. |
TriCellTable | TriCellTable(RenderContext rc, Document document, String id, int orientation0_1, Extent margin0_1, int orientation01_2, Extent margin01_2)(Code) | | Creates a three-celled TriCellTable .
Parameters: rc - the relevant RenderContext Parameters: document - the outgoing XML document Parameters: id - the id of the root element Parameters: orientation0_1 - The orientation of Element 0 with respect to Element 1, one of the following values:- LEFT_RIGHT (element 0 is to the left of element 1)
- RIGHT_LEFT (element 1 is to the left of element 0)
- TOP_BOTTOM (element 0 is above element 1)
- BOTTOM_TOP (element 1 is above element 0)
Parameters: margin0_1 - The margin size between element 0 and element 1. Parameters: orientation01_2 - The orientation of Elements 0 and 1 with respect to Element 2, one of the following values:- LEFT_RIGHT (elements 0 and 1 are to the left of element 1)
- RIGHT_LEFT (element 2 is to the left of elements 0 and 1)
- TOP_BOTTOM (elements 0 and 1 are above element 2)
- BOTTOM_TOP (element 2 is above elements 0 and 1)
Parameters: margin01_2 - The margin size between the combinationof elements 0 and 1 and element 2. |
addCellCssText | void addCellCssText(String cssText)(Code) | | Appends CSS text to the 'style' attribute of each table cell 'td'
element.
Parameters: cssText - the CSS text to add |
getMarginTdElement | Element getMarginTdElement(int index)(Code) | | Returns the specified margin element.
Parameters: index - The index of the table element to return. Index 0 is the marginelement between container cells 0 and 1. Index 1 is the marginelement between container cells 0/1 and 2. The specified margin element. Returns null if the margin is zeropixels. |
getTableElement | Element getTableElement()(Code) | | Returns the created table element.
the table element |
getTdElement | Element getTdElement(int index)(Code) | | Returns the specified container element.
Parameters: index - The index of the table element to return. For two-celled tables,legitimate values are 0 and 1. For three-celled tables, legitimate values are 0, 1, and 2. The specified container element. |
|
|