|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Treechildren
public class Treechildren
A treechildren.
| Nested Class Summary | |
|---|---|
protected class |
Treechildren.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl(). |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Treechildren()
|
|
| Method Summary | |
|---|---|
int |
getActivePage()
Returns the active page (starting from 0). |
int |
getItemCount()
Returns the number of child Treeitem
including all descendants. |
java.util.Collection |
getItems()
Returns a readonly list of all descending Treeitem
(children's children and so on). |
Treerow |
getLinkedTreerow()
Returns the Treerow that is associated with
this treechildren, or null if no such treerow. |
int |
getPageCount()
Returns the number of pages. |
int |
getPageSize()
Returns the page size which controls the number of visible child Treeitem, or -1 if no limitation. |
Tree |
getTree()
Returns the Tree instance containing this element. |
int |
getVisibleBegin()
Returns the index of the first visible child. |
int |
getVisibleEnd()
Returns the index of the last visible child. |
boolean |
insertBefore(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
|
void |
invalidate()
|
boolean |
isVisible()
Returns whether this is visible. |
protected java.lang.Object |
newExtraCtrl()
|
void |
onChildRemoved(org.zkoss.zk.ui.Component child)
|
void |
setActivePage(int pg)
Sets the active page (starting from 0). |
void |
setPageSize(int size)
Sets the page size which controls the number of visible child Treeitem. |
void |
setParent(org.zkoss.zk.ui.Component parent)
|
void |
smartUpdate(java.lang.String name,
java.lang.String value)
|
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getOuterAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, isChildable, isListenerAvailable, onChildAdded, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setVariable, setVisible, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Treechildren()
| Method Detail |
|---|
public Tree getTree()
Tree instance containing this element.
public Treerow getLinkedTreerow()
Treerow that is associated with
this treechildren, or null if no such treerow.
In other words, it is Treeitem.getTreerow() of
AbstractComponent.getParent().
Treerow.getLinkedTreechildren()public boolean isVisible()
Besides depends on AbstractComponent.setVisible(boolean), it also depends on
whether all its ancestors is open.
isVisible in interface org.zkoss.zk.ui.ComponentisVisible in class org.zkoss.zk.ui.AbstractComponentpublic java.util.Collection 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
including all descendants. The same as getItems().size().
Note: the performance is no good.
public int getPageSize()
Treeitem, or -1 if no limitation.
If setPageSize(int) is called with a non-zero value,
this method return the non-zero value.
If setPageSize(int) is called with zero, this method
returns Tree.getPageSize() of getTree().
Default: the same as getTree()'s Tree.getPageSize().
getPageSize in interface PageableTree.getPageSize(),
setPageSize(int)
public void setPageSize(int size)
throws org.zkoss.zk.ui.WrongValueException
Treeitem.
setPageSize in interface Pageablesize - the page size. If zero, the page size will be
the same as Tree.getPageSize() of getTree().
In other words, zero means the default page size is used.
If negative, all Treeitem are shown.
org.zkoss.zk.ui.WrongValueExceptionpublic int getPageCount()
getPageCount in interface Pageablepublic int getActivePage()
getActivePage in interface Pageable
public void setActivePage(int pg)
throws org.zkoss.zk.ui.WrongValueException
setActivePage in interface Pageableorg.zkoss.zk.ui.WrongValueException - if no such pagepublic int getVisibleBegin()
Used only for component development, not for application developers.
public int getVisibleEnd()
Used only for component development, not for application developers.
public void setParent(org.zkoss.zk.ui.Component parent)
setParent in interface org.zkoss.zk.ui.ComponentsetParent in class org.zkoss.zk.ui.AbstractComponent
public boolean insertBefore(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
insertBefore in interface org.zkoss.zk.ui.ComponentinsertBefore in class org.zkoss.zk.ui.AbstractComponentpublic void onChildRemoved(org.zkoss.zk.ui.Component child)
onChildRemoved in interface org.zkoss.zk.ui.ComponentonChildRemoved in class org.zkoss.zk.ui.AbstractComponentpublic void invalidate()
invalidate in interface org.zkoss.zk.ui.Componentinvalidate in class org.zkoss.zk.ui.AbstractComponent
public void smartUpdate(java.lang.String name,
java.lang.String value)
smartUpdate in interface org.zkoss.zk.ui.ComponentsmartUpdate in class org.zkoss.zk.ui.AbstractComponentprotected java.lang.Object newExtraCtrl()
newExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||