Interface ICheckboxBase<I extends ICheckboxBase>
-
- All Superinterfaces:
IChildrenOfInputgroup<I>,IComponent<I>,IHtmlBasedComponent<I>,ILabelElement<I>,ILabelImageElement<I>,IXulElement<I>
public interface ICheckboxBase<I extends ICheckboxBase> extends ILabelImageElement<I>
ImmutableICheckboxbase component.- Author:
- katherine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetAutodisable()Returns a list of component IDs that shall be disabled when the user clicks this component.java.lang.StringgetName()Returns the name of this component.java.lang.ObjectgetValue()Returns the value.default booleanisChecked()Returns whether it is checked.default booleanisDisabled()Sets whether it is disabled.default booleanisIndeterminate()Return whether component is in indeterminate state.IwithAutodisable(java.lang.String autodisable)Returns a copy ofthisimmutable component with the specifiedautodisable.IwithChecked(boolean checked)Returns a copy ofthisimmutable component with the specifiedchecked.IwithDisabled(boolean disabled)Returns a copy ofthisimmutable component with the specifieddisabled.IwithIndeterminate(boolean indeterminate)Returns a copy ofthisimmutable component with the specifiedindeterminate.IwithName(java.lang.String name)Returns a copy ofthisimmutable component with the specifiedname.IwithValue(java.lang.Object value)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, 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.ILabelElement
getLabel, withLabel
-
Methods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImage
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Method Detail
-
getValue
@Nullable java.lang.Object getValue()
Returns the value.Default:
null.
-
withValue
I withValue(@Nullable java.lang.Object value)
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
@Nullable java.lang.String getAutodisable()
Returns a list of component IDs that shall be disabled when the user clicks this component.Default:
null
-
withAutodisable
I withAutodisable(@Nullable java.lang.String autodisable)
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
@Nullable java.lang.String 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
I withName(@Nullable java.lang.String name)
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
I withDisabled(boolean disabled)
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
I withIndeterminate(boolean indeterminate)
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
I withChecked(boolean checked)
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
-
-