Package org.zkoss.stateless.sul
Interface IGroup<I extends IAnyGroup>
- All Superinterfaces:
IChildable<IGroup<I>,,I> IComponent<IGroup<I>>,IGroupChild<IGroup<I>>,IHtmlBasedComponent<IGroup<I>>,IRowBase<IGroup<I>>,IXulElement<IGroup<I>>
public interface IGroup<I extends IAnyGroup>
extends IGroupChild<IGroup<I>>, IChildable<IGroup<I>,I>
Immutable
Group component
Adds the ability for single level grouping to the Grid.
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:
-
Group
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIGroup.Builder<I extends IAnyGroup>Builds instances of typeIGroup.static classBuilds an updater of typeIGroupforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetLabel()Returns the value of theILabelit contains, or null if no such cell.default StringReturns the client widget class.default booleanisOpen()Returns whether this container is open.of(I... children) Returns the instance with the given any group children.Returns the instance with the given any group children.Returns the instance with the given label.Returns 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.IRowBase
getAlign, getIndex, getValign, isLoaded, isNowrap, withAlign, withIndex, withNowrap, withValignMethods 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.grid.Group"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getLabel
Returns the value of theILabelit contains, or null if no such cell. -
withLabel
Returns a copy ofthisimmutable component with the specifiedlabel.Sets the value of the
ILabelit contains.If it is not created, we automatically create it.
- Parameters:
label- The label of the first childDefault:
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- Whether it's open.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 given any group children.- Parameters:
children- The children belong to any group- See Also:
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-