Package org.zkoss.stateless.sul
Interface IAvatargroup
- All Superinterfaces:
IAnyGroup<IAvatargroup>,IChildable<IAvatargroup,,IAvatar> IComponent<IAvatargroup>,IHtmlBasedComponent<IAvatargroup>,IXulElement<IAvatargroup>
public interface IAvatargroup
extends IXulElement<IAvatargroup>, IChildable<IAvatargroup,IAvatar>, IAnyGroup<IAvatargroup>
Immutable
Avatargroup component.
A group container that stacks multiple IAvatar components with an
overlapping layout. When getMaxItems() is set, avatars beyond the limit
are hidden and a "+N" overflow indicator is shown.
- Since:
- 11.0.0
- Author:
- peaker
- See Also:
-
Avatargroup
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIAvatargroup.static classBuilds an updater of typeIAvatargroupforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IAvatargroupConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the maximum number of visible avatars.getShape()Returns the shape override applied to all child avatars, ornullif not overriding.getSize()Returns the size override applied to all child avatars, ornullif not overriding.default StringReturns the client widget class.static IAvatargroupReturns the instance with the givenIAvatarchildren.static IAvatargroupReturns the instance with the givenIAvatarchildren.static IAvatargroupReturns the instance with the given id.withMaxItems(int maxItems) Returns a copy ofthisimmutable component with the specifiedmaxItems.Returns a copy ofthisimmutable component with the specifiedshape.Returns a copy ofthisimmutable component with the specifiedsize.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.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:
"zul.wgt.Avatargroup"- Specified by:
getWidgetClassin interfaceIComponent<IAvatargroup>
-
getMaxItems
default int getMaxItems()Returns the maximum number of visible avatars.Default:
0(unlimited). -
withMaxItems
Returns a copy ofthisimmutable component with the specifiedmaxItems.Sets the maximum number of visible avatars. Excess avatars are hidden and replaced with a "+N" overflow indicator.
- Parameters:
maxItems- the number of visible avatars;0means unlimited and a negative value is rejected.Default:
0.- Returns:
- A modified copy of the
thisobject
-
getSize
Returns the size override applied to all child avatars, ornullif not overriding.Default:
null. -
withSize
Returns a copy ofthisimmutable component with the specifiedsize.Sets a uniform size for all child avatars. Applies via a CSS cascade class on the group element;
IAvatar.getSize()is not changed.- Parameters:
size-"small","medium"or"large".Default:
null.- Returns:
- A modified copy of the
thisobject
-
getShape
Returns the shape override applied to all child avatars, ornullif not overriding.Default:
null. -
withShape
Returns a copy ofthisimmutable component with the specifiedshape.Sets a uniform shape for all child avatars. Applies via a CSS cascade class on the group element.
- Parameters:
shape- either"circle"or"square".Default:
null.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIAvatarchildren.- Parameters:
children- The children ofIAvatar
-
of
Returns the instance with the givenIAvatarchildren.- Parameters:
children- The children ofIAvatar
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-