Class InputData

java.lang.Object
org.zkoss.stateless.action.data.InputData
All Implemented Interfaces:
Serializable, ActionData
Direct Known Subclasses:
ErrorData

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

    • InputData

      public InputData()
  • Method Details

    • getValue

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

      public 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