Package org.zkoss.stateless.sul
Interface IListgroup
- All Superinterfaces:
IChildable<IListgroup,,IListcell<IAnyGroup>> IComponent<IListgroup>,IHtmlBasedComponent<IListgroup>,IListboxComposite<IListgroup>,IListgroupChild<IListgroup>,IListitemBase<IListgroup>,IMeshComposite<IListgroup>,IXulElement<IListgroup>
Immutable
Listgroup component
Adds the ability for single level grouping to the Listbox.
Support @Action
| Name | Action Type |
|---|---|
| onOpen | ActionData: OpenData
Denotes user has opened or closed a component. It is useful to implement load-on-demand by listening to the onOpen action, and creating components when the first time the component is opened. |
- Author:
- katherine
- See Also:
-
Listgroup
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIListgroup.static classBuilds an updater of typeIListgroupforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IListgroupConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetLabel()Returns the label of the firstIListcellit contains.default StringReturns the client widget class.default booleanisOpen()Returns whether this container is open.static IListgroupReturns the instance with the givenIListcellchildren.static IListgroupReturns the instance with the given label.static IListgroupReturns the instance with the givenIListcellchildren.static IListgroupReturns the instance with the given id.Returns a copy ofthisimmutable component with the specifiedlabel.withOpen(boolean open) Returns a copy ofthisimmutable component with the specifiedopen.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IListitemBase
checkHflex, checkWidth, getImage, getIndex, isDisabled, isLoaded, isSelectable, isSelected, withDisabled, withImage, withIndex, withLoaded, withSelectable, withSelectedMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkex.sel.Listgroup"- Specified by:
getWidgetClassin interfaceIComponent<IListgroup>
-
getLabel
Returns the label of the firstIListcellit contains.Default:
null -
withLabel
Returns a copy ofthisimmutable component with the specifiedlabel.Sets the label of the first
IListcellit contains.If it is not created, we automatically create it.
- Parameters:
label- The label of the firstIListcellit contains.Default:
null.- Returns:
- A modified copy of the
thisobject
-
isOpen
default boolean isOpen()Returns whether this container is open.Default:
true. -
withOpen
Returns a copy ofthisimmutable component with the specifiedopen.Sets whether this container is open.
- Parameters:
open-falseto hide all sublevel items.Default:
true.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label.- Parameters:
label- The label that the first cell holds.
-
of
Returns the instance with the givenIListcellchildren.- Parameters:
children- The children for eachIListcell
-
of
Returns the instance with the givenIListcellchildren.- Parameters:
children- The children for eachIListcell
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-