Package org.zkoss.stateless.sul
Interface IComboitem
- All Superinterfaces:
IChildrenOfInputgroup<IComboitem>,IComponent<IComboitem>,IDisable<IComboitem>,IHtmlBasedComponent<IComboitem>,ILabelElement<IComboitem>,ILabelImageElement<IComboitem>,IXulElement<IComboitem>
Immutable
Comboitem component
An item of a combo box.
- Author:
- katherine
- See Also:
-
Comboitem
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIComboitem.static classBuilds an updater of typeIComboitemforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IComboitemConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the embedded content (i.e., HTML tags) that is shown as part of the description.default StringReturns the description (never null).default StringReturns the client widget class.static IComboitemReturns the instance with the given labelstatic IComboitemReturns the instance with the given label and imagestatic IComboitemReturns the instance with the given id.static IComboitemReturns the instance with the given imagewithContent(String content) Returns a copy ofthisimmutable component with the specifiedcontent.withDescription(String description) Returns a copy ofthisimmutable component with the specifieddescription.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, 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.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.inp.Comboitem"- Specified by:
getWidgetClassin interfaceIComponent<IComboitem>
-
getDescription
Returns the description (never null). The description is used to provide extra information such that users is easy to make a selection.Default:
"". -
withDescription
Returns a copy ofthisimmutable component with the specifieddescription.Sets the description.
- Parameters:
description- The description of the comboitem.Default:
"".- Returns:
- A modified copy of the
thisobject
-
getContent
Returns the embedded content (i.e., HTML tags) that is shown as part of the description.It is useful to show the description in more versatile way.
Default:
""- See Also:
-
withContent
Returns a copy ofthisimmutable component with the specifiedcontent.Sets the embedded content (i.e., HTML tags) that is shown as part of the description.
It is useful to show the description in more versatile way.
Default:
"".Security Note
Unlike other methods, the content assigned to this method is generated directly to the browser without escaping. Thus, it is better not to have something input by the user to avoid any XSS attach.
Note: the content is sanitized by default to avoid XSS attack, and please don't use JavaScript in the content.
- Parameters:
content- The embedded content of the comboitem to displayDefault:
"".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label- Parameters:
label- The label of the comboitem
-
of
Returns the instance with the given label and image- Parameters:
label- The label of the comboitemimage- The image of the comboitem
-
ofImage
Returns the instance with the given image- Parameters:
image- The image of the comboitem
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-