|
||||||||||
| 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.Button
public class Button
A button.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.zkoss.zul.impl.LabelImageElement |
|---|
LabelImageElement.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 | |
|---|---|
Button()
|
|
Button(java.lang.String label)
|
|
Button(java.lang.String label,
java.lang.String image)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDir()
Returns the direction. |
java.lang.String |
getHref()
Returns the href that the browser shall jump to, if an user clicks this button. |
java.lang.String |
getOrient()
Returns the orient. |
java.lang.String |
getOuterAttrs()
|
int |
getTabindex()
Returns the tab order of this component. |
java.lang.String |
getTarget()
Returns the target frame or window. |
boolean |
isChildable()
No child is allowed. |
boolean |
isDisabled()
Returns whether it is disabled. |
boolean |
isReadonly()
Deprecated. |
void |
setDir(java.lang.String dir)
Sets the direction. |
void |
setDisabled(boolean disabled)
Sets whether it is disabled. |
void |
setHref(java.lang.String href)
Sets the href. |
void |
setOrient(java.lang.String orient)
Sets the orient. |
void |
setReadonly(boolean readonly)
Deprecated. |
void |
setTabindex(int tabindex)
Sets the tab order of this component. |
void |
setTarget(java.lang.String target)
Sets the target frame or window. |
| Methods inherited from class org.zkoss.zul.impl.LabelImageElement |
|---|
getImage, getImageContent, getImgTag, getSrc, isImageAssigned, newExtraCtrl, 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, 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, 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, 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 Button()
public Button(java.lang.String label)
public Button(java.lang.String label,
java.lang.String image)
| Method Detail |
|---|
public boolean isDisabled()
Default: false.
public void setDisabled(boolean disabled)
public java.lang.String getDir()
Default: "normal".
public void setDir(java.lang.String dir)
throws org.zkoss.zk.ui.WrongValueException
dir - either "normal" or "reverse".
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getOrient()
Default: "horizontal".
public void setOrient(java.lang.String orient)
throws org.zkoss.zk.ui.WrongValueException
orient - either "horizontal" or "vertical".
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getHref()
Default: null. If null, the button has no function unless you specify the onClick event listener.
If it is not null, the onClick event won't be sent.
public void setHref(java.lang.String href)
public java.lang.String getTarget()
Note: it is useful only if href (setHref(java.lang.String)) is specified
(i.e., use the onClick listener).
Default: null.
public void setTarget(java.lang.String target)
target - the name of the frame or window to hyperlink.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 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 getOuterAttrs()
getOuterAttrs in class XulElementpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||