Package org.zkoss.stateless.sul
Interface ISelectbox
- All Superinterfaces:
IAnyGroup<ISelectbox>,IComponent<ISelectbox>,IDisable<ISelectbox>,IHtmlBasedComponent<ISelectbox>
public interface ISelectbox
extends IHtmlBasedComponent<ISelectbox>, IDisable<ISelectbox>, IAnyGroup<ISelectbox>
Immutable
Selectbox component
Support @Action
| Name | Action Type |
|---|---|
| onSelect | ActionData: SelectData
Notifies one that the user has selected a new item in the selectbox. |
- Author:
- katherine
- See Also:
-
Selectbox
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeISelectbox.static classBuilds an updater of typeISelectboxforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ISelectboxConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the children of this component.default intReturns the maximal length of each item's label.getName()Returns the name of this component.default StringReturns the client widget class.default booleanReturns whether multiple selections are allowed.static ISelectboxReturns the instance with the given text children.static ISelectboxReturns the instance with the given text children.static ISelectboxReturns the instance with the given id.withChildren(Iterable<String> children) Returns a copy ofthisimmutable component with the specifiedchildren.withChildren(String... children) Returns a copy ofthisimmutable component with the specifiedchildren.withMaxlength(int maxlength) Returns a copy ofthisimmutable component with the specifiedmaxlength.withMultiple(boolean multiple) Returns a copy ofthisimmutable component with the specifiedmultiple.Returns a copy ofthisimmutable component with the specifiedname.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, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IDisable
isDisabled, withDisabledMethods 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, withZIndex
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.wgt.Selectbox"- Specified by:
getWidgetClassin interfaceIComponent<ISelectbox>- Returns:
-
getName
Returns the name of this component.Default:
null.The name is used only to work with "legacy" Web application that handles user's request by servlets. It works only with HTTP/HTML-based browsers. It doesn't work with other kind of clients.
Don't use this method if your application is purely based on ZK's event-driven model.
-
withName
Returns a copy ofthisimmutable component with the specifiedname.Sets the name of this component.
- Parameters:
name- The name of this component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getChildren
Returns the children of this component. -
withChildren
Returns a copy ofthisimmutable component with the specifiedchildren.Sets the text children.
- Parameters:
children- Text children.Default:
empty.- Returns:
- A modified copy of the
thisobject
-
withChildren
Returns a copy ofthisimmutable component with the specifiedchildren.Sets the text children.
- Parameters:
children- A list of text child.Default:
empty.- Returns:
- A modified copy of the
thisobject
-
isMultiple
default boolean isMultiple()Returns whether multiple selections are allowed.Default:
false. -
withMultiple
Returns a copy ofthisimmutable component with the specifiedmultiple.Sets whether multiple selections are allowed.
- Parameters:
multiple- Whether multiple selections are allowed.Default:
false.- Returns:
- A modified copy of the
thisobject
-
getMaxlength
default int getMaxlength()Returns the maximal length of each item's label. -
withMaxlength
Returns a copy ofthisimmutable component with the specifiedmaxlength.Sets the maximal length of each item's label.
- Parameters:
maxlength- The maximal length of each item's label.Default:
0.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given text children.- Parameters:
children- The text children
-
of
Returns the instance with the given text children.- Parameters:
children- The text children
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component.
-