Package org.zkoss.stateless.sul
Interface ICheckbox
- All Superinterfaces:
IAnyGroup<ICheckbox>,ICheckboxBase<ICheckbox>,IChildrenOfInputgroup<ICheckbox>,IComponent<ICheckbox>,IHtmlBasedComponent<ICheckbox>,ILabelElement<ICheckbox>,ILabelImageElement<ICheckbox>,IXulElement<ICheckbox>
Immutable
Checkbox component
Support @Action
| Name | Action Type |
|---|---|
| onCheck | ActionData: CheckData
Denotes when a component is checked or unchecked. |
| onFocus | Denotes when a component gets the focus. Remember event listeners
execute at the server, so the focus at the client might be changed when
the event listener for onFocus got executed. |
| onBlur | Denotes when a component loses the focus. Remember event listeners
execute at the server, so the focus at the client might be changed
when the event listener for onBlur got executed. |
Support Molds
| Name | Snapshot |
|---|---|
"default" |
![]() |
"switch" |
![]() |
"toggle" |
![]() |
"tristate" |
Allowing users to set the indeterminate state, in addition
to the checked and unchecked states. In tristate mold, when
users click on the checkbox, it will switch between checked, unchecked
and indeterminate states. This is different from the default
mold which has only checked and unchecked states.
|
- Author:
- katherine
- See Also:
-
Checkbox
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeICheckbox.static classBuilds an updater of typeICheckboxforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ICheckboxConstant for default attributes of this immutable component.static final ICheckboxConstant for switch mold attributes of this immutable component.static final ICheckboxConstant for toggle mold attributes of this immutable component.static final ICheckboxConstant for tristate mold attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the client widget class.static ICheckboxReturns the instance with the given label.static ICheckboxReturns the instance with the given label and image.static ICheckboxReturns the instance with the given id.static ICheckboxReturns the instance with the given image.Methods inherited from interface org.zkoss.stateless.sul.ICheckboxBase
getAutodisable, getName, getValue, isChecked, isDisabled, isIndeterminate, withAutodisable, withChecked, withDisabled, withIndeterminate, withName, withValueMethods 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.ILabelElement
getLabel, withLabelMethods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImageMethods 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. -
SWITCH
Constant for switch mold attributes of this immutable component. -
TOGGLE
Constant for toggle mold attributes of this immutable component. -
TRISTATE
Constant for tristate mold attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.wgt.Checkbox"- Specified by:
getWidgetClassin interfaceIComponent<ICheckbox>
-
of
Returns the instance with the given label.- Parameters:
label- The label of the component
-
of
Returns the instance with the given label and image.- Parameters:
label- The label of the componentimage- The image of the component
-
ofImage
Returns the instance with the given image.- Parameters:
image- The image of the component
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-


