Class Step

  • All Implemented Interfaces:
    TagBase, InputAttributable, java.io.Serializable, java.lang.Cloneable


    public class Step
    extends AbstractAttribute
    implements InputAttributable
    step attribute for the element.
    step attribute for input element :-
    Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this attribute is not set to any, the control accepts only values at multiples of the step value greater than the minimum.
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Field Detail

      • ANY

        public static final java.lang.String ANY
        The value any allows to accept any floating point numbers as value in the relevant tag.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Step

        public Step​()
        initializes attribute with initial value as 1
        Since:
        2.1.5
      • Step

        public Step​(java.lang.String value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
      • Step

        public Step​(int value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        sets the value for this attribute
        Parameters:
        value - the value for the attribute.
        Since:
        1.0.0
      • getValue

        public java.lang.String getValue​()
        gets the value of this attribute
        Returns:
        the value of the attribute
        Since:
        1.0.0
      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0