net.refractions.udig.project
Enum MapCompositionEvent.EventType

java.lang.Object
  extended by java.lang.Enum<MapCompositionEvent.EventType>
      extended by net.refractions.udig.project.MapCompositionEvent.EventType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MapCompositionEvent.EventType>
Enclosing class:
MapCompositionEvent

public static enum MapCompositionEvent.EventType
extends java.lang.Enum<MapCompositionEvent.EventType>


Enum Constant Summary
ADDED
          Indicates that a layer was added.
MANY_ADDED
          Indicates that more than one layer was added.
MANY_REMOVED
          Indicates that more than one layer was removed.
REMOVED
          Indicates that a layer was removed.
REORDERED
          Indicates that a layer was moved in the list of layers.
 
Method Summary
static MapCompositionEvent.EventType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MapCompositionEvent.EventType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REMOVED

public static final MapCompositionEvent.EventType REMOVED
Indicates that a layer was removed. The oldValue will be the layer that was removed and the newValue will be null.


MANY_REMOVED

public static final MapCompositionEvent.EventType MANY_REMOVED
Indicates that more than one layer was removed. The oldValue will be the layers removed, newValue will be an array of indices of the layers removed and layer will be null.


ADDED

public static final MapCompositionEvent.EventType ADDED
Indicates that a layer was added. The oldValue will be null and newValue will be the new layer. Layer will be null.


MANY_ADDED

public static final MapCompositionEvent.EventType MANY_ADDED
Indicates that more than one layer was added. The oldValue will be null, newValue will be a list of new layers and layer will be null.


REORDERED

public static final MapCompositionEvent.EventType REORDERED
Indicates that a layer was moved in the list of layers. OldValue will be the old position, newValue will be the new position and layer will be the layer moved. Layer will be null.

Method Detail

values

public static final MapCompositionEvent.EventType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MapCompositionEvent.EventType c : MapCompositionEvent.EventType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MapCompositionEvent.EventType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name