Package org.zkoss.stateless.sul
Interface IColorbox
- All Superinterfaces:
IAnyGroup<IColorbox>,IComponent<IColorbox>,IHtmlBasedComponent<IColorbox>,IXulElement<IColorbox>
Immutable
Colorbox component
A Colorbox used to retrieve an input that the user can select a color.
Support @Action
| Name | Action Type |
|---|---|
| onChange | ActionData: InputData
Denotes when the content of the component is changed. |
- Author:
- katherine
- See Also:
-
Colorbox
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIColorbox.static classBuilds an updater of typeIColorboxforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetColor()Returns the color (in string as#RRGGBB).default StringgetValue()Returns the value of colordefault StringReturns the client widget class.default booleanSets whether it is disabled.static IColorboxReturns the instance with the given color.static IColorboxReturns the instance with the given id.static IColorboxReturns the instance with the given size, width and height.Returns a copy ofthisimmutable component with the specifiedcolor.withDisabled(boolean disabled) Returns a copy ofthisimmutable component with the specifieddisabled.default IColorboxReturns a copy ofthisimmutable component with the specifiedcolor.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.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.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:
"zkex.inp.Colorbox"- Specified by:
getWidgetClassin interfaceIComponent<IColorbox>
-
getColor
Returns the color (in string as#RRGGBB).Default:
"#000000" -
withColor
Returns a copy ofthisimmutable component with the specifiedcolor.Sets the color (in string as
#RRGGBB).- Parameters:
color- The color (in string as#RRGGBB).Default:
"#000000".- 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
-
getValue
Returns the value of colorDefault: #000000
- See Also:
-
withValue
Returns a copy ofthisimmutable component with the specifiedcolor.Sets the color value (in string as
#RRGGBB).- Parameters:
value- The color value (in string as#RRGGBB).Default:
"#000000".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given color.- Parameters:
color- The color (in string as#RRGGBB)
-
ofSize
Returns the instance with the given size, width and height.- Parameters:
width- The width of the componentheight- The height of the component
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-