public class ProductNodeEvent extends EventObject
ProductNodeListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
NODE_ADDED |
static int |
NODE_CHANGED |
static int |
NODE_DATA_CHANGED |
static int |
NODE_REMOVED |
source
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getSource
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
public ProductNodeEvent(ProductNode sourceNode, int type)
sourceNode
- The product node on which the Event initially occurred.type
- the event typepublic 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.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
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.