|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Listitem
A list item.
Default HtmlBasedComponent.getZclass()
: z-listitem (since 5.0.0)
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Method Summary | |
---|---|
java.lang.String |
getImage()
Returns the image of the Listcell it contains. |
java.lang.String |
getLabel()
Returns the label of the Listcell it contains, or null if no such
cell. |
Listbox |
getListboxApi()
Returns the list box that it belongs to. |
Listgroup |
getListgroupApi()
Returns the listgroup that this item belongs to, or null. |
int |
getMaxlength()
Returns the maximal length of each item's label. |
java.lang.Object |
getValue()
Returns the value. |
boolean |
isCheckable()
Returns whether it is checkable. |
boolean |
isLoaded()
Returns whether the content of this item is loaded. |
boolean |
isSelected()
Returns whether it is selected. |
void |
setCheckable(boolean checkable)
Sets whether it is checkable. |
void |
setDisabled(boolean disabled)
Sets whether it is disabled. |
void |
setImage(java.lang.String image)
Sets the image of the Listcell it contains. |
void |
setLabel(java.lang.String label)
Sets the label of the Listcell it contains. |
void |
setSelected(boolean selected)
Sets whether it is selected. |
void |
setValue(java.lang.Object value)
Sets the value. |
Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Method Detail |
---|
Listbox getListboxApi()
It is the same as Component.getParent()
.
Listgroup getListgroupApi()
boolean isCheckable()
Default: true.
void setCheckable(boolean checkable)
Default: true.
int getMaxlength()
java.lang.Object getValue()
Default: null.
Note: the value is application dependent, you can place whatever value you want.
If you are using listitem with HTML Form (and with the name attribute), it is better to specify a String-typed value.
void setValue(java.lang.Object value)
value
- the value.
Note: the value is application dependent, you can place whatever value you want.
If you are using listitem with HTML Form (and with the name attribute), it is better to specify a String-typed value.
void setDisabled(boolean disabled)
boolean isSelected()
Default: false.
void setSelected(boolean selected)
java.lang.String getLabel()
Listcell
it contains, or null if no such
cell.
void setLabel(java.lang.String label)
Listcell
it contains.
If it is not created, we automatically create it.
java.lang.String getImage()
Listcell
it contains.
void setImage(java.lang.String image)
Listcell
it contains.
If it is not created, we automatically create it.
boolean isLoaded()
getListboxApi()
is live data, i.e., Listbox.getModel()
is
not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |