Interface IIntbox

All Superinterfaces:
IAnyGroup<IIntbox>, IChildrenOfInputgroup<IIntbox>, IComponent<IIntbox>, IFormatInputElement<IIntbox,Integer>, IHtmlBasedComponent<IIntbox>, IInputElement<IIntbox,Integer>, INumberInputElement<IIntbox,Integer>, IReadonly<IIntbox>, IXulElement<IIntbox>

public interface IIntbox extends INumberInputElement<IIntbox,Integer>, IAnyGroup<IIntbox>
Immutable Intbox component

An edit box for holding an integer.

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

    • DEFAULT

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

    • withValue

      IIntbox withValue(Integer 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<IIntbox,Integer>
      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.Intbox"

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

      static IIntbox of(Integer value)
      Returns the instance with the given value.
      Parameters:
      value - The integer value
    • of

      static IIntbox of(int value)
      Returns the instance with the given value.
      Parameters:
      value - The integer value
    • ofCols

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

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

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