|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.esa.beam.framework.datamodel.ProductNodeEvent
public class ProductNodeEvent
A product node event informs a product change listener about the source of the notification.
ProductNodeListener,
Serialized Form| Field Summary | |
|---|---|
static int |
NODE_ADDED
|
static int |
NODE_CHANGED
|
static int |
NODE_DATA_CHANGED
|
static int |
NODE_REMOVED
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ProductNodeEvent(ProductNode sourceNode,
int type)
Constructs a product node event. |
|
ProductNodeEvent(ProductNode sourceNode,
int type,
ProductNodeGroup nodeGroup)
Constructs a product node event. |
|
ProductNodeEvent(ProductNode sourceNode,
String propertyName,
Object oldValue,
Object newValue)
Constructs a productEvent object. |
|
| Method Summary | |
|---|---|
ProductNodeGroup |
getGroup()
|
Object |
getNewValue()
Gets the new property value if this is a property change event. |
Object |
getOldValue()
Gets the old property value if this is a property change event. |
String |
getPropertyName()
Gets the name of the property that was changed. |
ProductNode |
getSourceNode()
|
int |
getType()
|
String |
toString()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NODE_CHANGED
public static final int NODE_ADDED
public static final int NODE_REMOVED
public static final int NODE_DATA_CHANGED
| Constructor Detail |
|---|
public ProductNodeEvent(ProductNode sourceNode,
int type)
sourceNode - The product node on which the Event initially occurred.type - the event type
public ProductNodeEvent(ProductNode sourceNode,
int type,
ProductNodeGroup nodeGroup)
sourceNode - The product node on which the Event initially occurred.type - the event typenodeGroup - If event type is NODE_ADDED or NODE_REMOVED this is the parent group to which the source
node was added to or removed from.
public ProductNodeEvent(ProductNode sourceNode,
String propertyName,
Object oldValue,
Object newValue)
sourceNode - The product node whose property has changedpropertyName - The name of the property that was changed.oldValue - The old value.newValue - The new value.| Method Detail |
|---|
public int getType()
public final ProductNode getSourceNode()
public ProductNodeGroup getGroup()
NODE_ADDED or NODE_REMOVED event occurred. May be null.public String getPropertyName()
public Object getOldValue()
public Object getNewValue()
public String toString()
toString in class EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||