public class EditorEvent extends Event
Modifier and Type | Field and Description |
---|---|
static int |
CAN_EXIT |
boolean |
canExit
With a CAN_EXIT event this is initially set true, but if you set
it false then the Editor will not exit.
|
int |
canExitCode
With a CAN_EXIT event this will be set to the exit code that the
Editor is attempting to exit on.
|
static int |
CLOSED |
static int |
FROM_CONTROLS |
static int |
OBJECT_SET |
static int |
OBJECT_WILL_BE_SET
Called before the Object is set to the editor - to give the Object an opportunity
to configure the Editor before transferring the fields.
|
Object |
parameter
This is different depending on the type of event.
|
static int |
SHOWN |
static int |
TO_CONTROLS |
Constructor and Description |
---|
EditorEvent(int type,
Control target,
Object parameter) |
Modifier and Type | Method and Description |
---|---|
boolean |
affects(String aField)
This checks if the event is a TO_CONTROLS or a FROM_CONTROLS event, if it
affects the field "aField".
|
clearPostData, getPostData, isReused, setPostData, setReused
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public static final int OBJECT_SET
public static final int TO_CONTROLS
public static final int FROM_CONTROLS
public static final int CLOSED
public static final int SHOWN
public static final int CAN_EXIT
public static final int OBJECT_WILL_BE_SET
public Object parameter
If the type is OBJECT_SET then this parameter is the object that has been assigned to the editor.
If it is TO_CONTROLS or FROM_CONTROLS then it will be the individual FieldTransfer object associated with the field OR it is null if Editor.toControls() or Editor.fromControls() is called with no parameters (meaning that all the fields should be transferred).
public int canExitCode
public boolean canExit
public boolean affects(String aField)