public class PSpreadSheetEvent extends EventObject
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.| Modifier and Type | Field and Description |
|---|---|
static int |
EXPAND
Indicates the user wants more information on the given row.
|
static int |
SELECTION_CHANGED
Indicates the selection was changed by the user (either by
selecting a row with the mouse or using the up/down arrows).
|
source| Constructor and Description |
|---|
PSpreadSheetEvent(Object src,
int type,
Object selection)
Creates a new event indicating a selection was made
|
PSpreadSheetEvent(Object src,
int type,
PModelHandle[] selection)
Creates a new event that contains the given array of model handles.
|
| Modifier and Type | Method and Description |
|---|---|
PModelHandle[] |
getData()
Retrieves the event data.
|
Object |
getObjectData()
Retrieves the generic event data.
|
int |
getType()
Retrieves the event type.
|
getSource, toStringpublic static final int SELECTION_CHANGED
public static final int EXPAND
public PSpreadSheetEvent(Object src, int type, PModelHandle[] selection)
src - the event object the user selectedtype - the type of event to createselection - the model handle(s) for the selected objectpublic int getType()
public PModelHandle[] getData()
getObjectData().public Object getObjectData()
Copyright © 2003, 2023, Oracle and/or its affiliates.