ewe.ui
Class EditorEvent
java.lang.Object
ewe.ui.Event
ewe.ui.EditorEvent
- public class EditorEvent
- extends Event
This gets sent to FieldListeners through the fieldEvent() method. The "fieldName" variable
of the FieldTransfer object that is sent to this method will be set to "_editor_" to indicate
that the event is associated with the Editor itself and not with any field in the editor.
|
Method Summary |
boolean |
affects(String aField)
This checks if the event is a TO_CONTROLS or a FROM_CONTROLS event, if it
affects the field "aField". |
OBJECT_SET
public static final int OBJECT_SET
- See Also:
- Constant Field Values
TO_CONTROLS
public static final int TO_CONTROLS
- See Also:
- Constant Field Values
FROM_CONTROLS
public static final int FROM_CONTROLS
- See Also:
- Constant Field Values
CLOSED
public static final int CLOSED
- See Also:
- Constant Field Values
SHOWN
public static final int SHOWN
- See Also:
- Constant Field Values
parameter
public Object parameter
- This is different depending on the type of event.
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).
EditorEvent
public EditorEvent(int type,
Control target,
Object parameter)
affects
public boolean affects(String aField)
- This checks if the event is a TO_CONTROLS or a FROM_CONTROLS event, if it
affects the field "aField". This is considered to affect the field if the parameter
is a FieldTransfer for that field OR if the parameter is null which implies it affects
all fields.