|
||||||||||
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.sel.SelectWidget zul.sel.Tree
public class Tree
A container which can be used to hold a tabular or hierarchical set of rows of elements.
Event:
Default Widget.getZclass()
: z-tree, and an other option is z-dottree.
Field Summary |
---|
Fields inherited from class zul.sel.SelectWidget |
---|
rightSelect |
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 | |
---|---|
void |
clear()
clears the tree children. |
TreeItemIter |
getBodyWidgetIterator()
Returns the tree item iterator. |
Treecols |
getHeadWidgetClass()
Returns the head widget class. i.e. |
int |
getItemCount()
Returns the number of child Treeitem . |
Array |
getItems()
Returns a readonly list of all descending Treeitem
(children's children and so on). |
TreeItemIter |
itemIterator()
Returns the tree item iterator. |
protected boolean |
shallIgnoreSelect_(Event evt,
ItemWidget row)
Returns whether to ignore the selection. |
Methods inherited from class zul.sel.SelectWidget |
---|
clearSelection, fireOnSelect, fixAnchor_, getName, getRows, getSelectedIndex, getSelectedItem, getSelectedItems, indexOfItem, isCheckmark, isMultiple, selectAll, selectItem, setCheckmark, setMultiple, setName, setRows, setSelectAll, setSelectedIndex, setSelectedItem |
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 void clear()
clear
in class Widget
public Treecols getHeadWidgetClass()
Treecols
public Array getItems()
Treeitem
(children's children and so on).
Note: the performance of the size method of returned collection is no good.
public int getItemCount()
Treeitem
.
The same as getItems()
.size().
Note: the performance of this method is no good.
public TreeItemIter itemIterator()
public TreeItemIter getBodyWidgetIterator()
itemIterator()
protected boolean shallIgnoreSelect_(Event evt, ItemWidget row)
Widget.doSelect_(zk.Event)
).
Default: ignore the selection if it is clicked on the open icon or SelectWidget.rightSelect
is true and event is onRightClick.
evt
- the eventrow
- the row about to be selected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |