org.fopps.model
Class ModelEvent

java.lang.Object
  |
  +--org.fopps.model.ModelEvent
Direct Known Subclasses:
CompilationEvent, ConfigurationEvent, FeatureEvent

public class ModelEvent
extends java.lang.Object

Class ModelEvent represents a model event. In most cases an event indicates a property change in the model.

See Also:
ModelListener, AbstractItem, FeatureEvent, ConfigurationEvent

Field Summary
static int ITEM_ADDED
          Emitted, if an item was added
static int ITEM_CHANGED
          Emitted, if a change occurred
static int ITEM_REMOVED
          Emitted, if an item was removed
 
Constructor Summary
ModelEvent(int type)
           
ModelEvent(int type, AbstractItem source)
           
 
Method Summary
 AbstractItem getSource()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ITEM_ADDED

public static final int ITEM_ADDED
Emitted, if an item was added

See Also:
Constant Field Values

ITEM_REMOVED

public static final int ITEM_REMOVED
Emitted, if an item was removed

See Also:
Constant Field Values

ITEM_CHANGED

public static final int ITEM_CHANGED
Emitted, if a change occurred

See Also:
Constant Field Values
Constructor Detail

ModelEvent

public ModelEvent(int type)

ModelEvent

public ModelEvent(int type,
                  AbstractItem source)
Method Detail

getType

public int getType()

getSource

public AbstractItem getSource()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.