com.objex.panywhere
Class LegendChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.objex.panywhere.LegendChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class LegendChangeEvent
extends java.util.EventObject

The event fired by the Progeny Anywhere control when LegendItems are added, removed and/or changed

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LegendChangeEvent(LegendItem aItem, java.lang.Object source)
          Creates a new instance of LegendChangeEvent
LegendChangeEvent(java.lang.Object source, LegendItem aOldItem, LegendItem aNewItem)
          Creates a new instance of LegendChangeEvent
LegendChangeEvent(java.lang.Object source, LegendItem aChangingItem, java.lang.String aChangingPropertyName, java.lang.Object aOldValue, java.lang.Object aNewValue)
          Creates a new instance of LegendChangeEvent
 
Method Summary
 java.lang.String getChangingProperty()
           
 java.lang.Object getChangingPropertyNewValue()
           
 java.lang.Object getChangingPropertyOldValue()
           
 LegendItem getLegendItem()
           
 LegendItem getNewLegendItem()
           
 LegendItem getOldLegendItem()
           
 
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
 

Constructor Detail

LegendChangeEvent

public LegendChangeEvent(LegendItem aItem,
                         java.lang.Object source)
Creates a new instance of LegendChangeEvent

Parameters:
aItem - The LegendItem for which the event is being fired
source - The source of the event object

LegendChangeEvent

public LegendChangeEvent(java.lang.Object source,
                         LegendItem aChangingItem,
                         java.lang.String aChangingPropertyName,
                         java.lang.Object aOldValue,
                         java.lang.Object aNewValue)
Creates a new instance of LegendChangeEvent

Parameters:
aChangingItem - The LegendItem for which the event is being fired
source - The source of the event object
aChangingPropertyName - The name of the LegendItem property that is in the process of changing
aOldValue - The old value for the LegendItem property that is in the process of changing
aNewValue - The new value for the LegendItem property that is in the process of changing

LegendChangeEvent

public LegendChangeEvent(java.lang.Object source,
                         LegendItem aOldItem,
                         LegendItem aNewItem)
Creates a new instance of LegendChangeEvent

Parameters:
aOldItem - The LegendItem with the properties of the item before the changes
aNewItem - The LegendItem with the properties of the item after the changes were applied
source - The source of the event object
Method Detail

getLegendItem

public LegendItem getLegendItem()
Returns:
The LegendItem for which the event was fired

getOldLegendItem

public LegendItem getOldLegendItem()
Returns:
The LegendItem with properties before the changes were applied

getNewLegendItem

public LegendItem getNewLegendItem()
Returns:
The LegendItem with properties before the changes were applied

getChangingProperty

public java.lang.String getChangingProperty()
Returns:
The name of the LegendItem property that is in the process of changing if indeed this event was fired to for a change in the LegendItem. In all other cases, ther return value will be null.

getChangingPropertyNewValue

public java.lang.Object getChangingPropertyNewValue()
Returns:
The new value for the LegendItem property that is in the process of changing if indeed this event was fired to for a change in the LegendItem. In all other cases, ther return value will be null.

getChangingPropertyOldValue

public java.lang.Object getChangingPropertyOldValue()
Returns:
The old value for the LegendItem property that is in the process of changing if indeed this event was fired to for a change in the LegendItem. In all other cases, ther return value will be null.