|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Toolbarbutton
A tool button.
The default CSS class is "button".
Non-xul extension: Toolbarbutton supports getHref(). If
getHref() is not null, the onClick handler is ignored and this element
is degenerated to HTML's A tag.
Default HtmlBasedComponent.getZclass(): z-toolbar-button.(since 3.5.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 |
getDir()
Returns the direction. |
java.lang.String |
getHref()
Returns the href. |
java.lang.String |
getOrient()
Returns the orient. |
int |
getTabindex()
Returns the tab order of this component. |
java.lang.String |
getTarget()
Returns the target frame or window. |
boolean |
isDisabled()
Returns whether it is disabled. |
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 |
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 interface org.zkoss.zul.impl.api.LabelImageElement |
|---|
getHoverImage, getImage, getImageContent, setHoverImage, setHoverImageContent, setHoverImageContent, setImage, setImageContent, setImageContent |
| Methods inherited from interface org.zkoss.zul.impl.api.LabelElement |
|---|
getLabel, setLabel |
| 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 |
| Method Detail |
|---|
void setDisabled(boolean disabled)
boolean isDisabled()
Default: false.
java.lang.String getDir()
Default: "normal".
void setDir(java.lang.String dir)
throws WrongValueException
dir - either "normal" or "reverse".
WrongValueExceptionjava.lang.String getHref()
Default: null. If null, the button has no function unless you specify the onClick handler.
void setHref(java.lang.String href)
throws WrongValueException
WrongValueExceptionjava.lang.String getOrient()
Default: "horizontal".
void setOrient(java.lang.String orient)
throws WrongValueException
orient - either "horizontal" or "vertical".
WrongValueExceptionjava.lang.String getTarget()
Note: it is useful only if href (setHref(java.lang.String)) is specified (i.e.,
use the onClick listener).
Default: null.
void setTarget(java.lang.String target)
target - the name of the frame or window to hyperlink.int getTabindex()
Default: -1 (means the same as browser's default).
void setTabindex(int tabindex)
throws WrongValueException
WrongValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||