|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Columns
Defines the columns of a grid. Each child of a columns element should be a
Column
element.
Default HtmlBasedComponent.getZclass()
: z-columns.(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 | |
---|---|
Grid |
getGridApi()
Returns the grid that it belongs to. |
java.lang.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 columns with the header context menu. |
boolean |
isColumnshide()
Returns whether to enable hiding of columns with the header context menu. |
void |
setColumnsgroup(boolean columnsgroup)
Sets whether to enable grouping of columns with the header context menu. |
void |
setColumnshide(boolean columnshide)
Sets whether to enable hiding of columns with the header context menu. |
void |
setMenupopup(java.lang.String mpop)
Sets the ID of the menupopup ( Menupopup ) that should appear when
the user clicks on the element of each column. |
void |
setPopupApi(Menupopup mpop)
Deprecated. As of release 5.0.0, replaced with XulElement.setPopup(Popup) . |
Methods inherited from interface org.zkoss.zul.impl.api.HeadersElement |
---|
isSizable, setSizable |
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 |
---|
Grid getGridApi()
It is the same as Component.getParent()
.
void setColumnshide(boolean columnshide)
Note that it is only applied when getMenupopup()
is auto.
boolean isColumnshide()
Default: true.
void setColumnsgroup(boolean columnsgroup)
Note that it is only applied when getMenupopup()
is auto.
boolean isColumnsgroup()
Default: true.
java.lang.String getMenupopup()
Menupopup
) that should appear
when the user clicks on the element.
Default: none (a default menupoppup).
void setMenupopup(java.lang.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)
void setPopupApi(Menupopup mpop)
XulElement.setPopup(Popup)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |