org.openorb.board.shared
Class TreeTableListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by org.openorb.board.shared.TreeTableListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.event.MouseInputListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeWillExpandListener

public class TreeTableListener
extends javax.swing.event.MouseInputAdapter
implements javax.swing.event.TreeSelectionListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeWillExpandListener, javax.swing.event.ListSelectionListener

OpenORB GUI Components / Tree Table Component Listener

Author:
Olivier Modica

Field Summary
static int TABLE_EVENT_ALL
           
static int TABLE_EVENT_LCLICK_1
           
static int TABLE_EVENT_LCLICK_2
           
static int TABLE_EVENT_RCLICK_1
           
static int TABLE_EVENT_RCLICK_2
           
static int TABLE_EVENT_SELECTION
           
static int TREE_EVENT_ALL
           
static int TREE_EVENT_EXPANSION
           
static int TREE_EVENT_EXPANSION_COLLAPSE
           
static int TREE_EVENT_EXPANSION_EXPAND
           
static int TREE_EVENT_SELECTION
           
static int TREE_EVENT_WILLEXPAND
           
static int TREE_EVENT_WILLEXPAND_COLLAPSE
           
static int TREE_EVENT_WILLEXPAND_EXPAND
           
 
Constructor Summary
TreeTableListener(TreeTable treeTable)
          Constructor
TreeTableListener(TreeTableComponent treeTable)
          Constructor
 
Method Summary
 void addCase(int nodeType, int eventType, TreeTableEventHandler listener)
           
 void mouseClicked(java.awt.event.MouseEvent evt)
          MouseListener implementation
 void removeCase(int nodeType)
           
 void removeCase(int nodeType, int eventType)
           
 void treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
          TreeExpansionListener implementation
 void treeExpanded(javax.swing.event.TreeExpansionEvent evt)
          TreeExpansionListener implementation
 void treeWillCollapse(javax.swing.event.TreeExpansionEvent evt)
          TreeWillExpandListener implementation
 void treeWillExpand(javax.swing.event.TreeExpansionEvent evt)
          TreeWillExpandListener implementation
 void valueChanged(javax.swing.event.ListSelectionEvent evt)
          ListSelectionListener implementation
 void valueChanged(javax.swing.event.TreeSelectionEvent evt)
          TreeSelectionListener implementation
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 

Field Detail

TREE_EVENT_ALL

public static final int TREE_EVENT_ALL
See Also:
Constant Field Values

TREE_EVENT_SELECTION

public static final int TREE_EVENT_SELECTION
See Also:
Constant Field Values

TREE_EVENT_EXPANSION

public static final int TREE_EVENT_EXPANSION
See Also:
Constant Field Values

TREE_EVENT_EXPANSION_EXPAND

public static final int TREE_EVENT_EXPANSION_EXPAND
See Also:
Constant Field Values

TREE_EVENT_EXPANSION_COLLAPSE

public static final int TREE_EVENT_EXPANSION_COLLAPSE
See Also:
Constant Field Values

TREE_EVENT_WILLEXPAND

public static final int TREE_EVENT_WILLEXPAND
See Also:
Constant Field Values

TREE_EVENT_WILLEXPAND_EXPAND

public static final int TREE_EVENT_WILLEXPAND_EXPAND
See Also:
Constant Field Values

TREE_EVENT_WILLEXPAND_COLLAPSE

public static final int TREE_EVENT_WILLEXPAND_COLLAPSE
See Also:
Constant Field Values

TABLE_EVENT_ALL

public static final int TABLE_EVENT_ALL
See Also:
Constant Field Values

TABLE_EVENT_SELECTION

public static final int TABLE_EVENT_SELECTION
See Also:
Constant Field Values

TABLE_EVENT_LCLICK_1

public static final int TABLE_EVENT_LCLICK_1
See Also:
Constant Field Values

TABLE_EVENT_LCLICK_2

public static final int TABLE_EVENT_LCLICK_2
See Also:
Constant Field Values

TABLE_EVENT_RCLICK_1

public static final int TABLE_EVENT_RCLICK_1
See Also:
Constant Field Values

TABLE_EVENT_RCLICK_2

public static final int TABLE_EVENT_RCLICK_2
See Also:
Constant Field Values
Constructor Detail

TreeTableListener

public TreeTableListener(TreeTable treeTable)
Constructor


TreeTableListener

public TreeTableListener(TreeTableComponent treeTable)
Constructor

Method Detail

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent evt)
TreeSelectionListener implementation

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

treeExpanded

public void treeExpanded(javax.swing.event.TreeExpansionEvent evt)
TreeExpansionListener implementation

Specified by:
treeExpanded in interface javax.swing.event.TreeExpansionListener

treeCollapsed

public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
TreeExpansionListener implementation

Specified by:
treeCollapsed in interface javax.swing.event.TreeExpansionListener

treeWillExpand

public void treeWillExpand(javax.swing.event.TreeExpansionEvent evt)
TreeWillExpandListener implementation

Specified by:
treeWillExpand in interface javax.swing.event.TreeWillExpandListener

treeWillCollapse

public void treeWillCollapse(javax.swing.event.TreeExpansionEvent evt)
TreeWillExpandListener implementation

Specified by:
treeWillCollapse in interface javax.swing.event.TreeWillExpandListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent evt)
ListSelectionListener implementation

Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
MouseListener implementation

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter

addCase

public void addCase(int nodeType,
                    int eventType,
                    TreeTableEventHandler listener)

removeCase

public void removeCase(int nodeType)

removeCase

public void removeCase(int nodeType,
                       int eventType)