Interface ICheckboxBase<I extends ICheckboxBase>
- All Superinterfaces:
IChildrenOfInputgroup<I>,IComponent<I>,IHtmlBasedComponent<I>,ILabelElement<I>,ILabelImageElement<I>,IXulElement<I>
ICheckbox base component.- Author:
- katherine
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of component IDs that shall be disabled when the user clicks this component.getName()Returns the name of this component.getValue()Returns the value.default booleanReturns whether it is checked.default booleanSets whether it is disabled.default booleanReturn whether component is in indeterminate state.withAutodisable(String autodisable) Returns a copy ofthisimmutable component with the specifiedautodisable.withChecked(boolean checked) Returns a copy ofthisimmutable component with the specifiedchecked.withDisabled(boolean disabled) Returns a copy ofthisimmutable component with the specifieddisabled.withIndeterminate(boolean indeterminate) Returns a copy ofthisimmutable component with the specifiedindeterminate.Returns a copy ofthisimmutable component with the specifiedname.Returns a copy ofthisimmutable component with the specifiedvalue.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetClass, 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
-
Method Details
-
getValue
Returns the value.Default:
null. -
withValue
Returns a copy ofthisimmutable component with the specifiedvalue.Sets the value of the component.
- Parameters:
value- The value of the component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getAutodisable
Returns a list of component IDs that shall be disabled when the user clicks this component.Default:
null -
withAutodisable
Returns a copy ofthisimmutable component with the specifiedautodisable.Sets a list of component IDs that shall be disabled when the user clicks this component.
- Parameters:
autodisable- The value of the component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getName
Returns the name of this component.Default:
null.Don't use this method if your application is purely based on ZK's event-driven model.
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.
-
withName
Returns a copy ofthisimmutable component with the specifiedname.Sets the name of this component.
Don't use this method if your application is purely based on ZK's event-driven model.
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.
- Parameters:
name- The value of the component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
isDisabled
default boolean isDisabled()Sets whether it is disabled.Default:
false -
withDisabled
Returns a copy ofthisimmutable component with the specifieddisabled.Sets whether it is disabled.
- Parameters:
disabled-trueto disable this component.Default:
false.- Returns:
- A modified copy of the
thisobject
-
isIndeterminate
default boolean isIndeterminate()Return whether component is in indeterminate state. Default:false.- Returns:
- true if the component is indeterminate
-
withIndeterminate
Returns a copy ofthisimmutable component with the specifiedindeterminate.Sets whether the component is in indeterminate state.
- Parameters:
indeterminate- Whether the component is in indeterminate state.Default:
false.- Returns:
- A modified copy of the
thisobject
-
isChecked
default boolean isChecked()Returns whether it is checked.Default:
false. -
withChecked
Returns a copy ofthisimmutable component with the specifiedchecked.Sets whether it is checked.
- Parameters:
checked- Whether it is checked.Default:
false.- Returns:
- A modified copy of the
thisobject
-