|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.ui.Table.Cell
com.waveset.ui.Table.CompoundCell
com.waveset.ui.Table.GridCell
com.waveset.ui.Table.GridSpanCell
Extends GridCell
,
allowing a cell to span rows and/or columns.
Added subitems are applied "row-first", filling all columns for the first row before filling columns for the next row.
A subitem may be added with "rowspan" or "colspan" arguments. This reserves cells in the area:
------------------------------ | r,c |...| r,c+cs | ------------------------------ | ... |...| ... | ------------------------------ | r+rs,c |...| r+rs,c+cs | ------------------------------ - from r,c to r,c+cs - from r+rs,c to r+rs,c+csFor example, adding adding a subitem with rowspan=2 to a 2-by-2 GridSpanCell reserves (0,0) and (1,0). The next available cell is (0,1).
The sort name is the sort name of the first sub-item.
Nested Class Summary | |
protected static class |
Table.GridSpanCell.SubCell
Deprecated. |
Field Summary | |
protected static java.lang.String |
RESERVED
Deprecated. |
Fields inherited from class com.waveset.ui.Table.CompoundCell |
_subItems |
Constructor Summary | |
Table.GridSpanCell(int rows,
int cols)
Deprecated. |
Method Summary | |
void |
add(java.lang.Object subitem)
Deprecated. |
void |
add(java.lang.Object subItem,
int rowSpan,
int colSpan)
Deprecated. |
java.lang.String |
toHTML(RequestState req)
Deprecated. Don't be fooled: this is really an abstract method. |
Methods inherited from class com.waveset.ui.Table.CompoundCell |
subItemToHTML, subItemToHTML, toString |
Methods inherited from class com.waveset.ui.Table.Cell |
clone, getPrimaryKey, setPrimaryKey |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final java.lang.String RESERVED
Constructor Detail |
public Table.GridSpanCell(int rows, int cols) throws WavesetException
Method Detail |
public void add(java.lang.Object subitem) throws WavesetException
WavesetException
public void add(java.lang.Object subItem, int rowSpan, int colSpan) throws WavesetException
WavesetException
public java.lang.String toHTML(RequestState req)
Table.Cell
toHTML
in class Table.GridCell
Omit TD elements for RESERVED subcells. For example, assume we have a 3-by-3 GridSpanCell containing a 2-by-2 subcell:
---------------------- | o | o | R | | | | | ---------------------- | o | R | R | | | | | ---------------------- | o | o | o | | | | | ----------------------Render TR and TD elements as follows:
---------------------- tr | td | td | | /tr | /td | /td | | ---------------------- tr | td | | | /tr | /td | | | ---------------------- tr | td | td | td | /tr | /td | /td | /td | ----------------------
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |