ewe.ui
Class EditorEvent

java.lang.Object
  extended byewe.ui.Event
      extended byewe.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.


Field Summary
static int CLOSED
           
static int FROM_CONTROLS
           
static int OBJECT_SET
           
 Object parameter
          This is different depending on the type of event.
static int SHOWN
           
static int TO_CONTROLS
           
 
Fields inherited from class ewe.ui.Event
consumed, events, flags, target, timeStamp, type, window
 
Constructor Summary
EditorEvent(int type, Control target, Object parameter)
           
 
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".
 
Methods inherited from class ewe.ui.Event
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

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).

Constructor Detail

EditorEvent

public EditorEvent(int type,
                   Control target,
                   Object parameter)
Method Detail

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.