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
  • Field Details

    • DEFAULT

      static final IDoublespinner DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • withValue

      IDoublespinner withValue(Double value)
      Description copied from interface: IInputElement
      Returns a copy of this immutable component with the specified value.

      Sets the value of the input component.

      Specified by:
      withValue in interface IInputElement<IDoublespinner,Double>
      Parameters:
      value - The value of the input component.

      Default: null.

      Returns:
      A modified copy of the this object
    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zul.inp.Doublespinner"

      Specified by:
      getWidgetClass in interface IComponent<IDoublespinner>
    • getStep

      default double getStep()
      Returns the step of doublespinner

      Default: 1.0

    • withStep

      IDoublespinner withStep(double step)
      Returns a copy of this immutable component with the specified step.

      Sets the step of doublespinner

      Parameters:
      step - The step of the doublespinner

      Default: 1.0.

      Returns:
      A modified copy of the this object
    • isButtonVisible

      default boolean isButtonVisible()
      Returns whether the button (on the right of the doublespinner) is visible.

      Default: true.

    • withButtonVisible

      IDoublespinner withButtonVisible(boolean buttonVisible)
      Returns a copy of this immutable component with the specified buttonVisible.

      Sets whether the button (on the right of the doublespinner) is visible.

      Parameters:
      buttonVisible - false to disable the button visibility.

      Default: true.

      Returns:
      A modified copy of the this object
    • of

      static IDoublespinner of(Double value)
      Returns the instance with the given value.
      Parameters:
      value - The double value of the spinner
    • of

      static IDoublespinner of(double value)
      Returns the instance with the given value.
      Parameters:
      value - The double value of the spinner
    • ofCols

      static IDoublespinner ofCols(int cols)
      Returns the instance with the given cols.
      Parameters:
      cols - The cols which determines the visible width
    • ofConstraint

      static IDoublespinner ofConstraint(String constraint)
      Returns the instance with the given constraint.
      Parameters:
      constraint - The doublespinner constraint
    • ofId

      static IDoublespinner ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component