Package org.zkoss.stateless.sul
Interface IRadio
-
- All Superinterfaces:
IAnyGroup<IRadio>,ICheckboxBase<IRadio>,IChildrenOfInputgroup<IRadio>,IComponent<IRadio>,IHtmlBasedComponent<IRadio>,ILabelElement<IRadio>,ILabelImageElement<IRadio>,IXulElement<IRadio>
public interface IRadio extends ICheckboxBase<IRadio>, IAnyGroup<IRadio>
ImmutableRadiocomponentA radio button.
Radio buttons without a ancestor
IRadiogroupis considered as the same group. The nearest ancestorIRadiogroupis the group that the radio belongs to.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 onFocusgot 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 onBlurgot executed.- Author:
- katherine
- See Also:
Radio
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIRadio.BuilderBuilds instances of typeIRadio.static classIRadio.UpdaterBuilds an updater of typeIRadioforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetRadiogroup()Returns the id of theIRadiogroupthat groups this radiodefault java.lang.StringgetWidgetClass()Returns the client widget class.default booleanisSelected()Returns whether it is selected.static IRadioof(java.lang.String label)Returns the instance with the given label.static IRadioof(java.lang.String label, java.lang.String image)Returns the instance with the given label and image.static IRadioofId(java.lang.String id)Returns the instance with the given id.static IRadioofImage(java.lang.String image)Returns the instance with the given image.IRadiowithRadiogroup(java.lang.String radiogroupId)Returns a copy ofthisimmutable component with the specifiedradiogroupId.default IRadiowithSelected(boolean selected)Returns a copy ofthisimmutable component with the specifiedselected.-
Methods inherited from interface org.zkoss.stateless.sul.ICheckboxBase
getAutodisable, getName, getValue, isChecked, isDisabled, isIndeterminate, withAutodisable, withChecked, withDisabled, withIndeterminate, withName, withValue
-
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.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
-
-
-
-
Field Detail
-
DEFAULT
static final IRadio DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.wgt.Radio"- Specified by:
getWidgetClassin interfaceIComponent<IRadio>
-
getRadiogroup
@Nullable java.lang.String getRadiogroup()
Returns the id of theIRadiogroupthat groups this radioDefault:
null
-
withRadiogroup
IRadio withRadiogroup(@Nullable java.lang.String radiogroupId)
Returns a copy ofthisimmutable component with the specifiedradiogroupId.Sets the id of the
IRadiogroupthat groups this radio- Parameters:
radiogroupId- The id ofIRadiogroup.Default:
null.- Returns:
- A modified copy of the
thisobject
-
isSelected
@Lazy default boolean isSelected()
Returns whether it is selected.Default:
false.
-
withSelected
default IRadio withSelected(boolean selected)
Returns a copy ofthisimmutable component with the specifiedselected.Sets to select the radio or not.
- Parameters:
selected- Whether to select the radio.Default:
false.- Returns:
- A modified copy of the
thisobject
-
of
static IRadio of(java.lang.String label)
Returns the instance with the given label.- Parameters:
label- The label of the component
-
of
static IRadio of(java.lang.String label, java.lang.String image)
Returns the instance with the given label and image.- Parameters:
label- The label of the componentimage- The image of the component
-
ofImage
static IRadio ofImage(java.lang.String image)
Returns the instance with the given image.- Parameters:
image- The image of the component
-
ofId
static IRadio ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-