|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzk.Object
zk.Widget
zul.Widget
zul.LabelImageWidget
zul.mesh.HeaderWidget
zul.mesh.SortWidget
zul.sel.Listheader
public class Listheader
The list header which defines the attributes and header of a column
of a list box.
Its parent must be Listhead.
Difference from XUL:
Listheader.
Reason: easier to write Listbox.Default Widget.getZclass(): z-listheader.
| 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 | |
|---|---|
Listbox |
getListbox()
Returns the listbox that this belongs to. |
int |
getMaxlength()
Returns the maximal length of each item's label. |
Listbox |
getMeshBody()
Returns the mesh body that this belongs to. |
boolean |
group(boolean ascending,
Event evt)
Groups and sorts the items ( Listitem) based on
SortWidget.getSortAscending(). |
void |
onGroup()
It invokes group(boolean, zk.Event) to group list items and maintain
SortWidget.getSortDirection(). |
void |
setMaxlength(int maxlength)
Sets the maximal length of each item's label. |
protected void |
updateCells_()
Updates the cells according to the listheader |
| Methods inherited from class zul.mesh.SortWidget |
|---|
checkClientSort_, getSortAscending, getSortDescending, getSortDirection, replaceCavedChildrenInOrder_, setSort, setSortAscending, setSortDescending, setSortDirection, sort, sorting |
| Methods inherited from class zul.mesh.HeaderWidget |
|---|
getAlign, getMeshWidget, getValign, isSortable_, setAlign, setValign, updateMesh_ |
| Methods inherited from class zul.LabelImageWidget |
|---|
domContent_, domIcon_, domImage_, domLabel_, getHoverImage, getIconSclass, getImage, getImageNode, getLabel, setHoverImage, setIconSclass, setImage, setLabel, updateDomContent_ |
| 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 setMaxlength(int maxlength)
maxlength - public int getMaxlength()
public boolean group(boolean ascending,
Event evt)
Listitem) based on
SortWidget.getSortAscending().
If the corresponding comparator is not set, it returns false
and does nothing.
ascending - whether to use SortWidget.getSortAscending().
If the corresponding comparator is not set, it returns false
and does nothing.evt - the event causes the group
public void onGroup()
group(boolean, zk.Event) to group list items and maintain
SortWidget.getSortDirection().
protected void updateCells_()
public Listbox getListbox()
public Listbox getMeshBody()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||