|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.mesh.MeshWidget zul.grid.Grid
public class Grid
A grid is an element that contains both rows and columns elements. It is used to create a grid of elements. Both the rows and columns are displayed at once although only one will typically contain content, while the other may provide size information.
Default Widget.getZclass()
: z-grid.
To have a grid without stripping, you can specify a non-existent
style class to setOddRowSclass(_global_.String)
.
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
RowIter |
getBodyWidgetIterator()
Returns the tree item iterator. |
Widget |
getCell(int row,
int col)
Returns the specified cell, or null if not available. |
Columns |
getHeadWidgetClass()
Returns the head widget class. |
String |
getOddRowSclass()
Returns the style class for the odd rows. |
boolean |
hasGroup()
Returns whether the grid has group. |
protected void |
redrawEmpty_(Array out)
a redraw method for the empty message , if you want to customize the message , you could overwrite this. |
void |
setOddRowSclass(String scls)
Sets the style class for the odd rows. |
Methods inherited from class zul.mesh.MeshWidget |
---|
calcSize, getActivePage, getFocusCell, getHeadWidget, getInnerWidth, getPageCount, getPageSize, getPaginal, getPagingPosition, getSpan, inPagingMold, isAutopaging, isModel, isSizedByContent, setActivePage, setAutopaging, setInnerWidth, setModel, setPageSize, setPaginal, setPagingPosition, setSizedByContent, setSpan, syncSize |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Widget getCell(int row, int col)
row
- which row to fetch (starting at 0).col
- which column to fetch (starting at 0).
public String getOddRowSclass()
Default: Widget.getZclass()
-odd.
public void setOddRowSclass(String scls)
scls
- protected void redrawEmpty_(Array out)
out
- A array that contains html structure ,
it usually come from mold(redraw_).public Columns getHeadWidgetClass()
public RowIter getBodyWidgetIterator()
public boolean hasGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |