Package org.zkoss.stateless.sul
Interface IDoublespinner
- All Superinterfaces:
IAnyGroup<IDoublespinner>,IChildrenOfInputgroup<IDoublespinner>,IComponent<IDoublespinner>,IFormatInputElement<IDoublespinner,,Double> IHtmlBasedComponent<IDoublespinner>,IInputElement<IDoublespinner,,Double> INumberInputElement<IDoublespinner,,Double> IReadonly<IDoublespinner>,IXulElement<IDoublespinner>
public interface IDoublespinner
extends INumberInputElement<IDoublespinner,Double>, IAnyGroup<IDoublespinner>
Immutable
Doublespinner component.
An edit box for holding a constrained double.
Constraint
You could specify what value to accept for input controls by use of the
constraint attribute. It could be a combination
of no empty and the min (minimum) and max (maximum) to doublespinner.}.
For example,
IDoublespinner.ofConstraint("no empty, min -2.5 max 6.5: between -2.5 to 6.5");
- Author:
- katherine
- See Also:
-
Doublespinner
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIDoublespinner.static classBuilds an updater of typeIDoublespinnerforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDoublespinnerConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault doublegetStep()Returns the step of doublespinnerdefault StringReturns the client widget class.default booleanReturns whether the button (on the right of the doublespinner) is visible.static IDoublespinnerof(double value) Returns the instance with the given value.static IDoublespinnerReturns the instance with the given value.static IDoublespinnerofCols(int cols) Returns the instance with the given cols.static IDoublespinnerofConstraint(String constraint) Returns the instance with the given constraint.static IDoublespinnerReturns the instance with the given id.withButtonVisible(boolean buttonVisible) Returns a copy ofthisimmutable component with the specifiedbuttonVisible.withStep(double step) Returns a copy ofthisimmutable component with the specifiedstep.Returns a copy ofthisimmutable component with the specifiedvalue.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.IFormatInputElement
getFormat, withFormatMethods 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.IInputElement
getConstraint, getErrorboxIconSclass, getErrorboxSclass, getErrorMessage, getInputAttributes, getInstant, getMaxlength, getName, getPlaceholder, getValue, isDisabled, isInplace, withCols, withConstraint, withDisabled, withErrorboxIconSclass, withErrorboxSclass, withErrorMessage, withInplace, withInputAttributes, withInstant, withMaxlength, withName, withPlaceholderMethods inherited from interface org.zkoss.stateless.sul.INumberInputElement
getCols, getLocale, getRoundingMode, withLocale, withLocale, withRoundingModeMethods inherited from interface org.zkoss.stateless.sul.IReadonly
isReadonly, withReadonlyMethods 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
-
withValue
Description copied from interface:IInputElementReturns a copy ofthisimmutable component with the specifiedvalue.Sets the value of the input component.
- Specified by:
withValuein interfaceIInputElement<IDoublespinner,Double> - Parameters:
value- The value of the input component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getWidgetClass
Returns the client widget class.Default:
"zul.inp.Doublespinner"- Specified by:
getWidgetClassin interfaceIComponent<IDoublespinner>
-
getStep
default double getStep()Returns the step of doublespinnerDefault:
1.0 -
withStep
Returns a copy ofthisimmutable component with the specifiedstep.Sets the step of doublespinner
- Parameters:
step- The step of the doublespinnerDefault:
1.0.- Returns:
- A modified copy of the
thisobject
-
isButtonVisible
default boolean isButtonVisible()Returns whether the button (on the right of the doublespinner) is visible.Default:
true. -
withButtonVisible
Returns a copy ofthisimmutable component with the specifiedbuttonVisible.Sets whether the button (on the right of the doublespinner) is visible.
- Parameters:
buttonVisible-falseto disable the button visibility.Default:
true.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given value.- Parameters:
value- The double value of the spinner
-
of
Returns the instance with the given value.- Parameters:
value- The double value of the spinner
-
ofCols
Returns the instance with the given cols.- Parameters:
cols- The cols which determines the visible width
-
ofConstraint
Returns the instance with the given constraint.- Parameters:
constraint- The doublespinner constraint
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-