Package adams.gui.event
Class NodeDroppedEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.NodeDroppedEvent
-
- All Implemented Interfaces:
Serializable
public class NodeDroppedEvent extends EventObject
Event that gets sent in case of successful drag'n'drop events.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeDroppedEvent.NotificationTime
For a more fine-grained notification of drop events.
-
Field Summary
Fields Modifier and Type Field Description protected BaseTreeNode[]
m_Nodes
the nodes that got dropped.protected NodeDroppedEvent.NotificationTime
m_NotificationTime
the time of notification.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description NodeDroppedEvent(BaseTree source, BaseTreeNode[] nodes, NodeDroppedEvent.NotificationTime time)
Initializes the event.NodeDroppedEvent(BaseTree source, BaseTreeNode node, NodeDroppedEvent.NotificationTime time)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseTreeNode[]
getNodes()
Returns the "dropped" nodes.NodeDroppedEvent.NotificationTime
getNotificationTime()
Returns the notification time of the event.BaseTree
getTree()
Returns the base tree that triggered the event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_Nodes
protected BaseTreeNode[] m_Nodes
the nodes that got dropped.
-
m_NotificationTime
protected NodeDroppedEvent.NotificationTime m_NotificationTime
the time of notification.
-
-
Constructor Detail
-
NodeDroppedEvent
public NodeDroppedEvent(BaseTree source, BaseTreeNode node, NodeDroppedEvent.NotificationTime time)
Initializes the event.- Parameters:
source
- the tree that triggered the eventnode
- the "dropped" nodetime
- the notification time
-
NodeDroppedEvent
public NodeDroppedEvent(BaseTree source, BaseTreeNode[] nodes, NodeDroppedEvent.NotificationTime time)
Initializes the event.- Parameters:
source
- the tree that triggered the eventnodes
- the "dropped" nodestime
- the notification time
-
-
Method Detail
-
getTree
public BaseTree getTree()
Returns the base tree that triggered the event.- Returns:
- the tree
-
getNodes
public BaseTreeNode[] getNodes()
Returns the "dropped" nodes.- Returns:
- the nodes
-
getNotificationTime
public NodeDroppedEvent.NotificationTime getNotificationTime()
Returns the notification time of the event.- Returns:
- the time
-
-