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>
ImmutableGroupcomponentAdds 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 Classes Modifier and Type Interface Description static classIGroup.Builder<I extends IAnyGroup>Builds instances of typeIGroup.static classIGroup.UpdaterBuilds an updater of typeIGroupforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetLabel()Returns the value of theILabelit contains, or null if no such cell.default java.lang.StringgetWidgetClass()Returns the client widget class.default booleanisOpen()Returns whether this container is open.static <I extends IAnyGroup>
IGroup<I>of(I... children)Returns the instance with the given any group children.static <I extends IAnyGroup>
IGroup<I>of(java.lang.Iterable<? extends I> children)Returns the instance with the given any group children.static <I extends IAnyGroup>
IGroup<I>of(java.lang.String label)Returns the instance with the given label.static <I extends IAnyGroup>
IGroup<I>ofId(java.lang.String id)Returns the instance with the given id.IGroup<I>withLabel(java.lang.String label)Returns a copy ofthisimmutable component with the specifiedlabel.IGroup<I>withOpen(boolean open)Returns a copy ofthisimmutable component with the specifiedopen.-
Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildren
-
Methods 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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.IRowBase
getAlign, getIndex, getValign, isLoaded, isNowrap, withAlign, withIndex, withNowrap, withValign
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zkex.grid.Group"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getLabel
@Nullable default java.lang.String getLabel()
Returns the value of theILabelit contains, or null if no such cell.
-
withLabel
IGroup<I> withLabel(@Nullable java.lang.String label)
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
IGroup<I> withOpen(boolean open)
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
static <I extends IAnyGroup> IGroup<I> of(java.lang.String label)
Returns the instance with the given label.- Parameters:
label- The label that the first cell holds.
-
of
static <I extends IAnyGroup> IGroup<I> of(java.lang.Iterable<? extends I> children)
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
IAnyGroup
-
of
static <I extends IAnyGroup> IGroup<I> of(I... children)
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
IAnyGroup
-
-