Class InputData

  • All Implemented Interfaces:
    java.io.Serializable, ActionData
    Direct Known Subclasses:
    ErrorData

    public class InputData
    extends java.lang.Object
    implements ActionData
    Represents input data cause by user's input something at the client.
    Author:
    jumperchen
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InputData()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getPreviousValue()
      Returns the previous value before user's input.
      int getStart()
      Returns the start position of the cursor from the input element.
      java.lang.String getValue()
      Returns the value that user input.
      boolean isChangingBySelectBack()
      Returns whether this data is caused by an action that is onChanging type, and caused by user's selecting a list of predefined values (a.k.a., items).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputData

        public InputData()
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Returns the value that user input.
      • getPreviousValue

        public java.lang.Object getPreviousValue()
        Returns the previous value before user's input. Notice that the class of the return value depends on the component. For example, an instance of Double is returned if IDoublebox is used.
      • isChangingBySelectBack

        public boolean isChangingBySelectBack()
        Returns whether this data is caused by an action that is onChanging type, and caused by user's selecting a list of predefined values (a.k.a., items).

        It is always false if it is caused by an action with the onChange type.

        Currently, only ICombobox might set it to true for the onChanging action.

      • getStart

        public int getStart()
        Returns the start position of the cursor from the input element.
        Returns:
        the start position >= 0