Eclipse Platform
Release 3.6

org.eclipse.core.databinding.property
Class SimplePropertyEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.core.databinding.property.SimplePropertyEvent
All Implemented Interfaces:
Serializable

public final class SimplePropertyEvent
extends EventObject

Event object events in the properties API

Since:
1.2
See Also:
Serialized Form

Field Summary
static int CHANGE
          Event type constant indicating that the property changed
 IDiff diff
          If event == CHANGE, a diff object describing the change in state, or null for an unknown change.
 IProperty property
          The property on which the event took place
static int STALE
          Event type constant indicating that the property became stale
 int type
          The type of property event that occured
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SimplePropertyEvent(int type, Object source, IProperty property, IDiff diff)
          Constructs a PropertyChangeEvent with the given attributes
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGE

public static final int CHANGE
Event type constant indicating that the property changed


STALE

public static final int STALE
Event type constant indicating that the property became stale


type

public final int type
The type of property event that occured


property

public final IProperty property
The property on which the event took place


diff

public final IDiff diff
If event == CHANGE, a diff object describing the change in state, or null for an unknown change.

Constructor Detail

SimplePropertyEvent

public SimplePropertyEvent(int type,
                           Object source,
                           IProperty property,
                           IDiff diff)
Constructs a PropertyChangeEvent with the given attributes

Parameters:
type - the property type
source - the property source
property - the property that changed on the source
diff - a diff describing the change in state, or null if the change is unknown or not applicable.
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.