Package org.zkoss.stateless.action.data
Class SelectData
java.lang.Object
org.zkoss.stateless.action.data.SelectData
- All Implemented Interfaces:
Serializable,ActionData
Represents an action is triggered by a user to do a list selection being
changed at the client.
- Author:
- jumperchen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetKeys()Returns what keys were pressed when the mouse is clicked, or 0 if none of them was pressed.intReturns the reference item that is the component causing the onSelect event(select or deselect) to be fired.Returns the reference item path that is the component causing the onSelect event(select or deselect) to be fired, such asITreeNote: if not multiple, thegetReferencePath()is the same with the first item ofgetSelectionPaths().Returns the selected items (never null).Returns the selected paths ofITree(never null).
-
Field Details
-
ALT_KEY
public static final int ALT_KEYIndicates whether the Alt key is pressed. It might be returned as part ofgetKeys().- See Also:
-
CTRL_KEY
public static final int CTRL_KEYIndicates whether the Ctrl key is pressed. It might be returned as part ofgetKeys().- See Also:
-
SHIFT_KEY
public static final int SHIFT_KEYIndicates whether the Shift key is pressed. It might be returned as part ofgetKeys().- See Also:
-
-
Constructor Details
-
SelectData
-
-
Method Details
-
getSelectedItems
Returns the selected items (never null). -
getSelectionPaths
Returns the selected paths ofITree(never null). -
getReference
public int getReference()Returns the reference item that is the component causing the onSelect event(select or deselect) to be fired. Note: if not multiple, thegetReference()is the same with the first item ofgetSelectedItems(). -
getReferencePath
Returns the reference item path that is the component causing the onSelect event(select or deselect) to be fired, such asITreeNote: if not multiple, thegetReferencePath()is the same with the first item ofgetSelectionPaths(). -
getKeys
public final int getKeys()
-