|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.ui.util.TriCellTable
public class TriCellTable
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.
| Field Summary | |
|---|---|
static int |
BOTTOM_TOP
|
static int |
LEFT_RIGHT
|
static int |
RIGHT_LEFT
|
static int |
TOP_BOTTOM
|
| Constructor Summary | |
|---|---|
TriCellTable(org.w3c.dom.Document document,
java.lang.String id,
int orientation0_1,
Extent margin0_1)
Creates a two-celled TriCellTable. |
|
TriCellTable(org.w3c.dom.Document document,
java.lang.String id,
int orientation0_1,
Extent margin0_1,
int orientation01_2,
Extent margin01_2)
Creates a three-celled TriCellTable. |
|
| Method Summary | |
|---|---|
void |
addGlobalAttribute(java.lang.String name,
java.lang.String value)
Adds an attribute to every table cell in the rendered table. |
org.w3c.dom.Element |
getMarginTdElement(int index)
Returns the specified margin element. |
org.w3c.dom.Element |
getTableElement()
Returns the created table element. |
org.w3c.dom.Element |
getTdElement(int index)
Returns the specified container element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEFT_RIGHT
public static final int RIGHT_LEFT
public static final int TOP_BOTTOM
public static final int BOTTOM_TOP
| Constructor Detail |
|---|
public TriCellTable(org.w3c.dom.Document document,
java.lang.String id,
int orientation0_1,
Extent margin0_1)
TriCellTable.
document - the outgoing XML documentid - the id of the root elementorientation0_1 - The orientation of Element 0 with respect to
Element 1, one of the following values:
margin0_1 - The margin size between element 0 and element 1.
public TriCellTable(org.w3c.dom.Document document,
java.lang.String id,
int orientation0_1,
Extent margin0_1,
int orientation01_2,
Extent margin01_2)
TriCellTable.
document - the outgoing XML documentid - the id of the root elementorientation0_1 - The orientation of Element 0 with respect to
Element 1, one of the following values:
margin0_1 - The margin size between element 0 and element 1.orientation01_2 - The orientation of Elements 0 and 1 with
respect to Element 2, one of the following values:
margin01_2 - The margin size between the combination
of elements 0 and 1 and element 2.| Method Detail |
|---|
public void addGlobalAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attribute.value - The value of the attribute.public org.w3c.dom.Element getTableElement()
public org.w3c.dom.Element getTdElement(int index)
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.
public org.w3c.dom.Element getMarginTdElement(int index)
index - The index of the table element to return. Index 0 is the margin
element between container cells 0 and 1. Index 1 is the margin
element between container cells 0/1 and 2.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||