|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.mesh.HeadWidget zul.mesh.ColumnMenuWidget
public class ColumnMenuWidget
A skeletal implementation for a column menu widget.
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
String |
getMenupopup()
Returns the ID of the Menupopup ( Menupopup ) that should appear
when the user clicks on the element. |
boolean |
isColumnsgroup()
Returns whether to enable grouping of the widget with the header context menu. |
boolean |
isColumnshide()
Returns whether to enable hiding of the widget with the header context menu. |
void |
setColumnsgroup(boolean columnsgroup)
Sets whether to enable grouping of the widget with the header context menu. |
void |
setColumnshide(boolean columnshide)
Sets whether to enable hiding of the widget with the header context menu. |
void |
setMenupopup(String mpop)
Sets the ID of the menupopup ( Menupopup ) that should appear
when the user clicks on the element of each column. |
void |
syncColMenu()
Synchronizes the menu of this widget. |
Methods inherited from class zul.mesh.HeadWidget |
---|
getMeshWidget, isSizable, setSizable |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setColumnshide(boolean columnshide)
Note that it is only applied when getMenupopup()
is auto.
columnshide
- public boolean isColumnshide()
Default: true.
public void setColumnsgroup(boolean columnsgroup)
Note that it is only applied when getMenupopup()
is auto.
columnsgroup
- public boolean isColumnsgroup()
Default: true.
public void setMenupopup(String mpop)
Menupopup
) that should appear
when the user clicks on the element of each column.
An onOpen event is sent to the popup menu if it is going to appear. Therefore, developers can manipulate it dynamically (perhaps based on OpenEvent.getReference) by listening to the onOpen event.
Note: To simplify the use, it ignores the ID space when locating the component at the client. In other words, it searches for the first component with the specified ID, no matter it is in the same ID space or not.
If there are two components with the same ID (of course, in
different ID spaces), you can specify the UUID with the following
format:
uuid(comp_uuid)
mpop
- an ID of the menupopup component, "none", or "auto".
"none" is assumed by default, "auto" means the menupopup component is
created automatically.setMenupopup(String)
public String getMenupopup()
Menupopup
) that should appear
when the user clicks on the element.
Default: none (a default menupoppup).
public void syncColMenu()
Widget.inServer
is true).
You have to invoke this method only if you create this widget
at client and change the content of the column's menu.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |