laser.alphabet.event
Class AlphabetChangeEvent<L extends LabelInterface>

java.lang.Object
  extended by java.util.EventObject
      extended by laser.alphabet.event.AlphabetChangeEvent<L>
All Implemented Interfaces:
java.io.Serializable

public class AlphabetChangeEvent<L extends LabelInterface>
extends java.util.EventObject

The AlphabetChangeEvent class represents when the given alphabet has been changed.

Author:
Heather M. Conboy (laser-software@cs.umass.edu), Paula A. Wing
See Also:
Serialized Form

Field Summary
static java.lang.String ANNOTATIONS
          The set of aspects
static java.lang.String LABELS
           
static java.lang.String NAME
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AlphabetChangeEvent(AlphabetInterface<L> source, java.lang.String aspect, AlphabetChangeAction action, java.lang.Object value)
          Creates a new AlphabetChangeEvent where the given alphabet has changed.
 
Method Summary
 AlphabetChangeAction getAction()
          Gets the action that represents how the aspect changed.
 AlphabetInterface<L> getAlphabet()
          Gets the alphabet that has changed.
 java.lang.String getAspect()
          Gets the aspect of the alphabet that has changed.
 java.lang.Object getValue()
          Gets the value that represents what about the aspect changed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ANNOTATIONS

public static final java.lang.String ANNOTATIONS
The set of aspects

See Also:
Constant Field Values

LABELS

public static final java.lang.String LABELS
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

AlphabetChangeEvent

public AlphabetChangeEvent(AlphabetInterface<L> source,
                           java.lang.String aspect,
                           AlphabetChangeAction action,
                           java.lang.Object value)
Creates a new AlphabetChangeEvent where the given alphabet has changed. PRECONDITIONS:

Parameters:
source - The alphabet that has changed
aspect - The aspect of the alphabet that has changed
action - The action that represents how it changed
value - The value that represents what changed
Method Detail

getAlphabet

public AlphabetInterface<L> getAlphabet()
Gets the alphabet that has changed.

Returns:
The alphabet that changed

getAspect

public java.lang.String getAspect()
Gets the aspect of the alphabet that has changed.

Returns:
The aspect that changed

getAction

public AlphabetChangeAction getAction()
Gets the action that represents how the aspect changed.

Returns:
The action

getValue

public java.lang.Object getValue()
Gets the value that represents what about the aspect changed.

Returns:
The value