|
||||||||||
| 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.impl.LabelElement
org.zkoss.zul.impl.LabelImageElement
org.zkoss.zul.Checkbox
public class Checkbox
A checkbox.
Event:
| Nested Class Summary | |
|---|---|
protected class |
Checkbox.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 | |
|---|---|
Checkbox()
|
|
Checkbox(java.lang.String label)
|
|
Checkbox(java.lang.String label,
java.lang.String image)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getInnerAttrs()
Appends interior attributes for generating the HTML checkbox tag (the name, disabled and other attribute). |
java.lang.String |
getLabelAttrs()
Returns the attributes used by the embedded HTML LABEL tag. |
java.lang.String |
getName()
Returns the name of this component. |
java.lang.String |
getOuterAttrs()
Appends exterior attributes for generating the HTML span tag (the event relevant attribute). |
int |
getTabindex()
Returns the tab order of this component. |
boolean |
isChecked()
Returns whether it is checked. |
boolean |
isDisabled()
Returns whether it is disabled. |
boolean |
isReadonly()
Deprecated. |
protected java.lang.Object |
newExtraCtrl()
|
void |
setChecked(boolean checked)
Sets whether it is checked. |
void |
setDisabled(boolean disabled)
Sets whether it is disabled. |
void |
setName(java.lang.String name)
Sets the name of this component. |
void |
setReadonly(boolean readonly)
Deprecated. |
void |
setTabindex(int tabindex)
Sets the tab order of this component. |
| Methods inherited from class org.zkoss.zul.impl.LabelImageElement |
|---|
getImage, getImageContent, getImgTag, getSrc, isImageAssigned, setImage, setImageContent, setSrc |
| Methods inherited from class org.zkoss.zul.impl.LabelElement |
|---|
getLabel, setLabel |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, 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, insertBefore, invalidate, isChildable, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, 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 Checkbox()
public Checkbox(java.lang.String label)
public Checkbox(java.lang.String label,
java.lang.String image)
| Method Detail |
|---|
public boolean isDisabled()
Default: false.
public void setDisabled(boolean disabled)
public boolean isChecked()
Default: false.
public void setChecked(boolean checked)
public boolean isReadonly()
Default: false.
It is deprecated since no real effect. See w3.org
public void setReadonly(boolean readonly)
It is deprecated since no real effect. See w3.org
public java.lang.String getName()
Default: null.
Don't use this method if your application is purely based on ZK's event-driven model.
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
public void setName(java.lang.String name)
Don't use this method if your application is purely based on ZK's event-driven model.
The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
name - the name of this component.public int getTabindex()
Default: -1 (means the same as browser's default).
public void setTabindex(int tabindex)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getLabelAttrs()
Used only by component developer.
public java.lang.String getInnerAttrs()
Used only by component developers.
getInnerAttrs in class XulElementpublic java.lang.String getOuterAttrs()
Used only by component developers.
getOuterAttrs in class XulElementprotected java.lang.Object newExtraCtrl()
newExtraCtrl in class LabelImageElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||