Interface IDoublebox

All Superinterfaces:
IAnyGroup<IDoublebox>, IChildrenOfInputgroup<IDoublebox>, IComponent<IDoublebox>, IFormatInputElement<IDoublebox,Double>, IHtmlBasedComponent<IDoublebox>, IInputElement<IDoublebox,Double>, INumberInputElement<IDoublebox,Double>, IReadonly<IDoublebox>, IXulElement<IDoublebox>

public interface IDoublebox extends INumberInputElement<IDoublebox,Double>, IAnyGroup<IDoublebox>
Immutable Doublebox component.

An edit box for holding an float point value (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 positive, no negative, no zero, and no empty.

Author:
katherine
See Also:
  • Doublebox
  • Field Details

    • DEFAULT

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

    • withValue

      IDoublebox 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<IDoublebox,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.Doublebox"

      Specified by:
      getWidgetClass in interface IComponent<IDoublebox>
    • of

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

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

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

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

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