com.metamatrix.console.ui.views.authorization
Class ProvidersChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.metamatrix.console.ui.views.authorization.ProvidersChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class ProvidersChangedEvent
extends java.util.EventObject

The ProvidersChangeEvent is used to notify ProvidersChangeListeners that a change in a Configuration has occurred.

Since:
Golden Gate
Version:
1.0
Author:
Dan Florian
See Also:
Serialized Form

Field Summary
static int DELETED
          Indicates a provider has been deleted.
static int MODIFIED
          Indicates a provider has been modified.
static int NEW
          Indicates a provider has been added.
protected  int type
          The event type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProvidersChangedEvent(int theType, java.lang.Object theChangedObject)
          Constructs a ConfigurationChangeEvent of the given type.
 
Method Summary
 int getType()
          /////////////////////////////////////////////////////////////////// // METHODS /////////////////////////////////////////////////////////////////// /** Gets the event type.
 boolean isDeleted()
          Indicates if the changed object has been deleted.
 boolean isModified()
          Indicates if the changed object has been modified.
 boolean isNew()
          Indicates if the changed object is new.
 
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

DELETED

public static final int DELETED
Indicates a provider has been deleted.

See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
Indicates a provider has been modified.

See Also:
Constant Field Values

NEW

public static final int NEW
Indicates a provider has been added.

See Also:
Constant Field Values

type

protected int type
The event type.

Constructor Detail

ProvidersChangedEvent

public ProvidersChangedEvent(int theType,
                             java.lang.Object theChangedObject)
Constructs a ConfigurationChangeEvent of the given type.

Parameters:
theType - the event type
theChangedObject - the object whose state has changed
Throws:
java.lang.IllegalArgumentException - if type is not valid, if the changed object is null, or if the configuration is null.
Method Detail

getType

public int getType()
/////////////////////////////////////////////////////////////////// // METHODS /////////////////////////////////////////////////////////////////// /** Gets the event type.

Returns:
the event type

isDeleted

public boolean isDeleted()
Indicates if the changed object has been deleted.

Returns:
true if the changed object has been deleted; false otherwise.

isModified

public boolean isModified()
Indicates if the changed object has been modified.

Returns:
true if the changed object has been modified; false otherwise.

isNew

public boolean isNew()
Indicates if the changed object is new.

Returns:
true if the changed object is new; false otherwise.


Copyright © 2009. All Rights Reserved.