org.openorb.board.shared.treetable
Class Listener

java.lang.Object
  extended by javax.swing.event.MouseInputAdapter
      extended by org.openorb.board.shared.treetable.Listener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, 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 Listener
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 / Listener

Author:
Olivier Modica

Field Summary
static int TABLE_EVENT_ANY
           
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 TREE_EVENT_ANY
           
static int TREE_EVENT_COLLAPSE
           
static int TREE_EVENT_EXPAND
           
static int TREE_EVENT_LCLICK_2
           
static int TREE_EVENT_RCLICK_1
           
static int TREE_EVENT_RCLICK_2
           
static int TREE_EVENT_SELECTION
          Define the event type constants
static int TREE_EVENT_WILLCOLLAPSE
           
static int TREE_EVENT_WILLEXPAND
           
 
Constructor Summary
Listener(TreeTable2 treeTable)
          Constructor
 
Method Summary
 void addCase(int nodeType, int eventType, DataNodeEventHandler 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 javax.swing.event.MouseInputAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREE_EVENT_SELECTION

public static final int TREE_EVENT_SELECTION
Define the event type constants

See Also:
Constant Field Values

TREE_EVENT_EXPAND

public static final int TREE_EVENT_EXPAND
See Also:
Constant Field Values

TREE_EVENT_COLLAPSE

public static final int TREE_EVENT_COLLAPSE
See Also:
Constant Field Values

TREE_EVENT_WILLEXPAND

public static final int TREE_EVENT_WILLEXPAND
See Also:
Constant Field Values

TREE_EVENT_WILLCOLLAPSE

public static final int TREE_EVENT_WILLCOLLAPSE
See Also:
Constant Field Values

TREE_EVENT_LCLICK_2

public static final int TREE_EVENT_LCLICK_2
See Also:
Constant Field Values

TREE_EVENT_RCLICK_1

public static final int TREE_EVENT_RCLICK_1
See Also:
Constant Field Values

TREE_EVENT_RCLICK_2

public static final int TREE_EVENT_RCLICK_2
See Also:
Constant Field Values

TREE_EVENT_ANY

public static final int TREE_EVENT_ANY
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

TABLE_EVENT_ANY

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

Listener

public Listener(TreeTable2 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 javax.swing.event.MouseInputAdapter

addCase

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

removeCase

public void removeCase(int nodeType)

removeCase

public void removeCase(int nodeType,
                       int eventType)