|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
ilog.views.appframe.docview.project.DataContainerEvent
public class DataContainerEvent
Event that indicates that the content of a data container has changed because a node has been added or removed or because a node attribute has changed.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
DataContainerEvent(IlvDataContainer dataContainer,
int id,
Object parent,
Object node,
int index)
Constructs a DataContainerEvent instance. |
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Field Detail |
|---|
public static final int NODE_ADDED
public static final int NODE_REMOVED
public static final int PROPERTY_CHANGED
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public IlvDataContainer getDataContainer()
public int getID()
NODE_ADDED,
NODE_REMOVED,
PROPERTY_CHANGEDpublic Object getNode()
public Object getParent()
public int getIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||