Package org.zkoss.stateless.sul
Interface IListitem
-
- All Superinterfaces:
IChildable<IListitem,IListcell<IAnyGroup>>,IComponent<IListitem>,IHtmlBasedComponent<IListitem>,IListboxComposite<IListitem>,IListitemBase<IListitem>,IMeshComposite<IListitem>,IXulElement<IListitem>
public interface IListitem extends IListitemBase<IListitem>, IChildable<IListitem,IListcell<IAnyGroup>>
ImmutableListitemcomponent- Author:
- katherine
- See Also:
Listitem
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIListitem.BuilderBuilds instances of typeIListitem.static classIListitem.UpdaterBuilds an updater of typeIListitemforUiAgent.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 label of the firstIListcellit contains.default java.lang.StringgetWidgetClass()Returns the client widget class.static IListitemof(java.lang.Iterable<? extends IListcell<IAnyGroup>> children)Returns the instance with the givenIListcellchildren.static IListitemof(java.lang.String label)Returns the instance with the given label.static IListitemof(IListcell<IAnyGroup>... children)Returns the instance with the givenIListcellchildren.static IListitemofId(java.lang.String id)Returns the instance with the given id.IListitemwithLabel(java.lang.String label)Returns a copy ofthisimmutable component with the specifiedlabel.-
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.IListitemBase
checkHflex, checkWidth, getImage, getIndex, isDisabled, isLoaded, isSelectable, isSelected, renderProperties, withDisabled, withImage, withIndex, withLoaded, withSelectable, withSelected
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IListitem DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.sel.Listitem"- Specified by:
getWidgetClassin interfaceIComponent<IListitem>
-
getLabel
@Nullable default java.lang.String getLabel()
Returns the label of the firstIListcellit contains.Default:
null
-
withLabel
IListitem withLabel(@Nullable java.lang.String label)
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
-
of
static IListitem of(java.lang.String label)
Returns the instance with the given label.- Parameters:
label- The label that the first cell holds.
-
of
static IListitem of(java.lang.Iterable<? extends IListcell<IAnyGroup>> children)
Returns the instance with the givenIListcellchildren.- Parameters:
children- The children for eachIListcell
-
of
static IListitem of(IListcell<IAnyGroup>... children)
Returns the instance with the givenIListcellchildren.- Parameters:
children- The children for eachIListcell
-
ofId
static IListitem ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-