|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Menu
An element, much like a button, that is placed on a menu bar. When the user
clicks the menu element, the child Menupopup
of the menu will be
displayed. This element is also used to create submenus (of Menupopup
.
Default HtmlBasedComponent.getZclass()
: z-mean. (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 |
getContent()
Returns the embedded content (i.e., HTML tags) that is shown as part of the description. |
Menupopup |
getMenupopupApi()
Returns the Menupopup it owns, or null if not available. |
boolean |
isTopmost()
Returns whether this is an top-level menu, i.e., not owning by another Menupopup . |
void |
setContent(java.lang.String content)
Sets the embedded content (i.e., HTML tags) that is shown as part of the description. |
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 |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Method Detail |
---|
boolean isTopmost()
Menupopup
.
Menupopup getMenupopupApi()
Menupopup
it owns, or null if not available.
java.lang.String getContent()
It is useful to show the description in more versatile way.
Default: empty ("").
void setContent(java.lang.String content)
It is useful to show the description in more versatile way.
There is a way to create Colorbox automatically by using
#color=#RRGGBB, usage example setContent("#color=FFFFFF")
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |