|
||||||||||
| 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.Listitem
public class Listitem
A list item.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl |
| 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 | |
|---|---|
Listitem()
|
|
Listitem(java.lang.String label)
|
|
Listitem(java.lang.String label,
java.lang.Object value)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.lang.String |
getImage()
Returns the image of the Listcell it contains. |
int |
getIndex()
Returns the index of this item (aka., the order in the listbox). |
java.lang.String |
getLabel()
Returns the label of the Listcell it contains, or null
if no such cell. |
Listbox |
getListbox()
Returns the list box that it belongs to. |
int |
getMaxlength()
Returns the maximal length of each item's label. |
java.lang.String |
getOuterAttrs()
|
java.lang.String |
getSclass()
Returns the style class. |
java.lang.String |
getSrc()
Returns the src of the Listcell it contains, or null
if no such cell. |
java.lang.Object |
getValue()
Returns the value. |
boolean |
insertBefore(org.zkoss.zk.ui.Component child,
org.zkoss.zk.ui.Component insertBefore)
|
void |
invalidate()
|
boolean |
isDisabled()
Returns whether it is disabled. |
boolean |
isSelected()
Returns whether it is selected. |
void |
onChildAdded(org.zkoss.zk.ui.Component child)
|
void |
onChildRemoved(org.zkoss.zk.ui.Component child)
|
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 |
setParent(org.zkoss.zk.ui.Component parent)
|
void |
setSelected(boolean selected)
Sets whether it is selected. |
void |
setSrc(java.lang.String src)
Sets the src of the Listcell it contains. |
void |
setValue(java.lang.Object value)
Sets the value. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDesktop, getExtraCtrl, getFellow, getFellowIfAny, getId, getInitParam, getIntInitParam, getListenerIterator, getMilieu, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, isChildable, isListenerAvailable, isVisible, onDrawNewChild, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setId, setMilieu, setMold, setPage, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Listitem()
public Listitem(java.lang.String label)
public Listitem(java.lang.String label,
java.lang.Object value)
| Method Detail |
|---|
public Listbox getListbox()
public int getMaxlength()
public 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.
public 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.
public final boolean isDisabled()
Default: false.
public void setDisabled(boolean disabled)
public boolean isSelected()
Default: false.
public void setSelected(boolean selected)
public java.lang.String getLabel()
Listcell it contains, or null
if no such cell.
public void setLabel(java.lang.String label)
Listcell it contains.
If it is not created, we automatically create it.
public java.lang.String getSrc()
Listcell it contains, or null
if no such cell.
public void setSrc(java.lang.String src)
Listcell it contains.
If it is not created, we automatically create it.
The same as setImage(java.lang.String).
public java.lang.String getImage()
Listcell it contains.
The same as getImage().
public void setImage(java.lang.String image)
Listcell it contains.
If it is not created, we automatically create it.
The same as setSrc(java.lang.String).
public final int getIndex()
public java.lang.String getSclass()
getSclass in class org.zkoss.zk.ui.HtmlBasedComponentpublic 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 invalidate()
invalidate in interface org.zkoss.zk.ui.Componentinvalidate in class org.zkoss.zk.ui.AbstractComponentpublic void onChildAdded(org.zkoss.zk.ui.Component child)
onChildAdded in interface org.zkoss.zk.ui.ComponentonChildAdded 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 java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic java.lang.Object clone()
clone in interface org.zkoss.zk.ui.Componentclone in class org.zkoss.zk.ui.AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||