public class PCollectDataEvent extends AWTEvent
PCollectDataEvent
sends a marshal data event to collect changed
data from various controls. This data can then be used, for example, to
commit changes and perform a search.Modifier and Type | Field and Description |
---|---|
static int |
FOR_DIRTY
Collects data from fields that have the "dirty" attribute set.
|
static int |
FOR_OTHER
Collects data for a purpose that doesn't fit into another category.
|
static int |
FOR_SEARCHING
Collects data for searches.
|
static int |
FOR_STORING
Collects data specifically for storage.
|
static int |
FOR_UNKNOWN
Collects data for an unspecified reason.
|
static int |
FOR_VALIDATION
Collects data specifically for validation.
|
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
source
Constructor and Description |
---|
PCollectDataEvent(Object src,
int why,
boolean forceCollectAll,
PModelHandle model)
Constructs an instance of
PCollectDataEvent given the source, and a
model to collect data. |
PCollectDataEvent(Object src,
int why,
PModelHandle model)
Constructs an instance of
PCollectDataEvent given the source,
a reason to collect the data, and a model in which to collect data. |
Modifier and Type | Method and Description |
---|---|
boolean |
forceResponse()
Forces a response from a control.
|
Object |
getInvalidComponent()
Checks for an invalid component and, if found, retrieves it.
|
PModelHandle |
getModel()
Gets the model in which to collect the changed data.
|
int |
getReason()
Gets the reason code for data collection.
|
void |
setInvalidComponent(Object src)
Called when the component this event was sent to has invalid data.
|
consume, getID, isConsumed, paramString, setSource, toString
getSource
public static final int FOR_UNKNOWN
public static final int FOR_SEARCHING
public static final int FOR_STORING
public static final int FOR_VALIDATION
public static final int FOR_OTHER
public static final int FOR_DIRTY
public PCollectDataEvent(Object src, int why, PModelHandle model)
PCollectDataEvent
given the source,
a reason to collect the data, and a model in which to collect data.src
- the event senderwhy
- the reason for data collectionmodel
- the model to collect datapublic PCollectDataEvent(Object src, int why, boolean forceCollectAll, PModelHandle model)
PCollectDataEvent
given the source, and a
model to collect data.src
- the event senderwhy
- the reason for data collectionforceCollectAll
- true if all controls should respond with their
data, even if they have no data, or have not changedmodel
- the model to collect datapublic PModelHandle getModel()
public int getReason()
public void setInvalidComponent(Object src)
src
- the component that has the invalid datapublic Object getInvalidComponent()
public boolean forceResponse()
Copyright © 2003, 2023, Oracle and/or its affiliates.