public class DataContainerEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
NODE_ADDED
This event indicates that a node has been added to a data container.
|
static int |
NODE_REMOVED
This event indicates that a node has been removed from a data container.
|
static int |
PROPERTY_CHANGED
This event indicates that a property of a node has changed.
|
source
Constructor and Description |
---|
DataContainerEvent(IlvDataContainer dataContainer,
int id,
Object parent,
Object node,
int index)
Constructs a
DataContainerEvent instance. |
Modifier and Type | Method and Description |
---|---|
IlvDataContainer |
getDataContainer()
Returns the data container that has the changed content.
|
int |
getID()
Returns the type of the event.
|
int |
getIndex()
Returns the position at which the node was added or removed, depending
on the event type.
|
Object |
getNode()
Returns the node that originates the event.
|
Object |
getParent()
Returns the parent of the node that originates the event.
|
getSource, toString
public static final int NODE_ADDED
public static final int NODE_REMOVED
public static final int PROPERTY_CHANGED
public DataContainerEvent(IlvDataContainer dataContainer, int id, Object parent, Object node, int index)
DataContainerEvent
instance.dataContainer
- The data container with the changed content.id
- An ID for the type of the event.node
- The node that has been added, removed, or modified.parent
- The parent of the node that has been added, removed, or modified or
null
if the node
is a root of the data container.index
- The position of the node in the
child array of the parent
.public IlvDataContainer getDataContainer()
public int getID()
NODE_ADDED
,
NODE_REMOVED
,
PROPERTY_CHANGED
public Object getNode()
public Object getParent()
public int getIndex()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.