net.refractions.udig.project
Class EditManagerEvent

java.lang.Object
  extended by net.refractions.udig.project.UDIGEvent
      extended by net.refractions.udig.project.EditManagerEvent

public class EditManagerEvent
extends UDIGEvent

An event indicating a attribute of the EditManager has changed.

Since:
1.0.0
Author:
Jesse

Field Summary
static int EDIT_FEATURE
          Indicates the current edit feature has changed.
static int EDIT_LAYER
          Indicates the current edit layer has changed.
static int POST_COMMIT
          Indicates the transaction has been committed.
static int POST_ROLLBACK
          Indicates the transaction has been rolledback.
static int PRE_COMMIT
          Indicates the transaction is about to be committed.
static int PRE_ROLLBACK
          Indicates the transaction is about to be rolledback.
static int SELECTED_LAYER
          Indicates the currently selected layer has changed.
 
Fields inherited from class net.refractions.udig.project.UDIGEvent
newValue, oldValue, source
 
Constructor Summary
EditManagerEvent(IEditManager source, int type, java.lang.Object newValue, java.lang.Object oldValue)
          Construct EditManagerEvent.
 
Method Summary
 IEditManager getSource()
          Gets the source of the event.
 int getType()
          Gets the type of the event.
 
Methods inherited from class net.refractions.udig.project.UDIGEvent
getNewValue, getOldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_FEATURE

public static final int EDIT_FEATURE
Indicates the current edit feature has changed. The old value will be the last edit feature, the new value will be the currently/newly edit feature


EDIT_LAYER

public static final int EDIT_LAYER
Indicates the current edit layer has changed. The old value will be the last edit layer, the new value will be the currently/newly edit layer


SELECTED_LAYER

public static final int SELECTED_LAYER
Indicates the currently selected layer has changed. The old value will be the last selected layer, the new value will be the currently/newly selected layer


PRE_COMMIT

public static final int PRE_COMMIT
Indicates the transaction is about to be committed. Old and new values will be null.

See Also:
Constant Field Values

POST_COMMIT

public static final int POST_COMMIT
Indicates the transaction has been committed. Old and new values will be null.

See Also:
Constant Field Values

PRE_ROLLBACK

public static final int PRE_ROLLBACK
Indicates the transaction is about to be rolledback. Old and new values will be null.

See Also:
Constant Field Values

POST_ROLLBACK

public static final int POST_ROLLBACK
Indicates the transaction has been rolledback. Old and new values will be null.

See Also:
Constant Field Values
Constructor Detail

EditManagerEvent

public EditManagerEvent(IEditManager source,
                        int type,
                        java.lang.Object newValue,
                        java.lang.Object oldValue)
Construct EditManagerEvent.

Parameters:
source - the object that raised the event.
type - the type of event this object represents.
newValue - the new value, if this applies.
oldValue - the old value, if this applies.
Method Detail

getType

public int getType()
Gets the type of the event.

Returns:
the type of the event.
See Also:
EDIT_FEATURE, EDIT_LAYER, SELECTED_LAYER, PRE_COMMIT, POST_COMMIT, PRE_ROLLBACK, POST_ROLLBACK

getSource

public IEditManager getSource()
Description copied from class: UDIGEvent
Gets the source of the event.

Specified by:
getSource in class UDIGEvent
Returns:
the source of the event.