ilog.ds
Class TreeItemEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.TreeItemEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class TreeItemEvent
- extends AbstractDSEvent
Event class used for all events happening on a tree item
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
TreeItemEvent(java.lang.Object source,
java.lang.Object item)
Constructor to use when the item is being deleted. |
TreeItemEvent(java.lang.Object source,
java.lang.Object item,
java.util.Map properties)
Constructor to use for tree item updates |
TreeItemEvent(java.lang.Object source,
java.lang.Object parent,
java.lang.Object item,
boolean allowsChildren,
java.util.Map properties)
Constructor to use for tree item creation |
|
Method Summary |
boolean |
getAllowsChildren()
Use this method to know whether the node is allowed to have children or
not. |
java.lang.Object |
getItem()
Gets the item (to be used only as a key). |
java.lang.Object |
getParent()
Gets the parent of the item (to be used only as a key). |
| 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 |
_parent
protected java.lang.Object _parent
_item
protected java.lang.Object _item
_allowsChildren
protected boolean _allowsChildren
TreeItemEvent
public TreeItemEvent(java.lang.Object source,
java.lang.Object parent,
java.lang.Object item,
boolean allowsChildren,
java.util.Map properties)
- Constructor to use for tree item creation
- Parameters:
source - The first parameter is the source of the event.parent - item The owner of the new item. Can be null for
a root item.item - The item itself. Can be anything, as it is only used as a key.properties - Contains the named properties of the node, that is, all the
properties defining the item.
TreeItemEvent
public TreeItemEvent(java.lang.Object source,
java.lang.Object item,
java.util.Map properties)
- Constructor to use for tree item updates
- Parameters:
source - The first parameter is the source of the event.item - The item itself. Can be anything, as it is only used as a key.properties - Contains the named properties of the item, that is, all the
modified properties.
TreeItemEvent
public TreeItemEvent(java.lang.Object source,
java.lang.Object item)
- Constructor to use when the item is being deleted.
getParent
public java.lang.Object getParent()
- Gets the parent of the item (to be used only as a key). Can return
null when the item created is the root item. Also returns
null when an item gets updated or deleted.
- Returns:
- The parent of the item
getItem
public java.lang.Object getItem()
- Gets the item (to be used only as a key).
- Returns:
- the subject of this event
getAllowsChildren
public boolean getAllowsChildren()
- Use this method to know whether the node is allowed to have children or
not.
- Returns:
true if the node allows children, or
false otherwise.