Package org.zkoss.stateless.action.data
Class InputData
java.lang.Object
org.zkoss.stateless.action.data.InputData
- All Implemented Interfaces:
Serializable,ActionData
- Direct Known Subclasses:
ErrorData
Represents input data cause by user's input something at the client.
- Author:
- jumperchen
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the previous value before user's input.intgetStart()Returns the start position of the cursor from the input element.getValue()Returns the value that user input.booleanReturns whether this data is caused by an action that isonChangingtype, and caused by user's selecting a list of predefined values (a.k.a., items).
-
Constructor Details
-
InputData
public InputData()
-
-
Method Details
-
getValue
Returns the value that user input. -
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 ifIDoubleboxis used. -
isChangingBySelectBack
public boolean isChangingBySelectBack()Returns whether this data is caused by an action that isonChangingtype, 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
onChangetype.Currently, only
IComboboxmight 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
-