Package com.portal.bas.comp
Class PSpreadSheetEvent
java.lang.Object
java.util.EventObject
com.portal.bas.comp.PSpreadSheetEvent
- All Implemented Interfaces:
Serializable
PSpreadSheetEvent
is an event generated when the user
performs some type of selection action in the PIASpreadSheet
.
This event is used to differentiate between simple selection changes
and actual activation of a given cell or row.- Version:
- %version: 4 % %date_modified: Tue Jun 26 15:56:51 2001 %
- Author:
- kapono
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates the user wants more information on the given row.static final int
Indicates the selection was changed by the user (either by selecting a row with the mouse or using the up/down arrows).Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionPSpreadSheetEvent
(Object src, int type, PModelHandle[] selection) Creates a new event that contains the given array of model handles.PSpreadSheetEvent
(Object src, int type, Object selection) Creates a new event indicating a selection was made -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
SELECTION_CHANGED
public static final int SELECTION_CHANGEDIndicates the selection was changed by the user (either by selecting a row with the mouse or using the up/down arrows).- See Also:
-
EXPAND
public static final int EXPANDIndicates the user wants more information on the given row. Typically this gesture is a double click or the Enter/Return key.- See Also:
-
-
Constructor Details
-
PSpreadSheetEvent
Creates a new event that contains the given array of model handles.- Parameters:
src
- the event object the user selectedtype
- the type of event to createselection
- the model handle(s) for the selected object
-
PSpreadSheetEvent
Creates a new event indicating a selection was made- Parameters:
src
- the event object the user selectedtype
- the type of event to createselection
- generic data the caller wishes to send along with the event
-
-
Method Details
-
getType
public int getType()Retrieves the event type.- Returns:
- An integer that represents the event type.
-
getData
Retrieves the event data. This will probably be deprecated in the future, to be replaced by the genericgetObjectData()
.- Returns:
- The model handle(s) associated with this event.
-
getObjectData
Retrieves the generic event data.- Returns:
- The data associated with this event.
-