Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.awt.tree
Class TreeActionEvent  view TreeActionEvent download TreeActionEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byjava.awt.AWTEvent
          extended byjava.awt.event.ActionEvent
              extended bycom.flexstor.common.awt.tree.TreeActionEvent
All Implemented Interfaces:
java.io.Serializable

public class TreeActionEvent
extends java.awt.event.ActionEvent

Action Event class for use with the com.flexstor.common.awt.Tree class.

Version:
2.1

Field Summary
static int BEGIN_NODE_COLLAPSE
          This event is fired when a node is about to be collapsed.
static int BEGIN_NODE_EXPAND
          This event is fired when a node is about to be expanded.
static int BEGIN_NODE_SELECT
          This event is fired when a node has been clicked by mouse.
static int END_NODE_COLLAPSE
          This event is fired when a node has been collapsed.
static int END_NODE_EXPAND
          This event is fired when a node has been expaned.
static int END_NODE_SELECT
          This event is fired after a node has been clicked by mouse.
private  boolean m_cancel
           
private  FlexTreeNode m_node
           
static int NODE_DOUBLE_CLICKED
          This event is fired when a node has been double clicked.
 
Fields inherited from class java.awt.event.ActionEvent
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TreeActionEvent(java.awt.Component source, int id, int modifiers, FlexTreeNode o)
          Constructor.
 
Method Summary
 boolean getCancel()
          Get an option to cancel event.
 FlexTreeNode getNode()
          Access to the FlexTreeNode object involved with the event, if there is one.
 void setCancel(boolean cancel)
          Set an option to cancel event.
 
Methods inherited from class java.awt.event.ActionEvent
getActionCommand, getModifiers, getWhen, paramString
 
Methods inherited from class java.awt.AWTEvent
consume, getID, isConsumed, setSource, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEGIN_NODE_EXPAND

public static final int BEGIN_NODE_EXPAND
This event is fired when a node is about to be expanded. This event can be canceled.

See Also:
Constant Field Values

END_NODE_EXPAND

public static final int END_NODE_EXPAND
This event is fired when a node has been expaned.

See Also:
Constant Field Values

BEGIN_NODE_COLLAPSE

public static final int BEGIN_NODE_COLLAPSE
This event is fired when a node is about to be collapsed. This event can be canceled.

See Also:
Constant Field Values

END_NODE_COLLAPSE

public static final int END_NODE_COLLAPSE
This event is fired when a node has been collapsed.

See Also:
Constant Field Values

BEGIN_NODE_SELECT

public static final int BEGIN_NODE_SELECT
This event is fired when a node has been clicked by mouse. This event can be canceled.

See Also:
Constant Field Values

END_NODE_SELECT

public static final int END_NODE_SELECT
This event is fired after a node has been clicked by mouse. This event can be canceled.

See Also:
Constant Field Values

NODE_DOUBLE_CLICKED

public static final int NODE_DOUBLE_CLICKED
This event is fired when a node has been double clicked.

See Also:
Constant Field Values

m_node

private FlexTreeNode m_node

m_cancel

private boolean m_cancel
Constructor Detail

TreeActionEvent

public TreeActionEvent(java.awt.Component source,
                       int id,
                       int modifiers,
                       FlexTreeNode o)
Constructor.

Method Detail

getNode

public FlexTreeNode getNode()
Access to the FlexTreeNode object involved with the event, if there is one.


getCancel

public boolean getCancel()
Get an option to cancel event.


setCancel

public void setCancel(boolean cancel)
Set an option to cancel event.