org.openorb.board.shared.treetable

Class Listener

public class Listener extends MouseInputAdapter implements TreeSelectionListener, TreeExpansionListener, TreeWillExpandListener, ListSelectionListener

OpenORB GUI Components / Tree Table / Listener

Author: Olivier Modica

Field Summary
static intTABLE_EVENT_ANY
static intTABLE_EVENT_LCLICK_1
static intTABLE_EVENT_LCLICK_2
static intTABLE_EVENT_RCLICK_1
static intTABLE_EVENT_RCLICK_2
static intTREE_EVENT_ANY
static intTREE_EVENT_COLLAPSE
static intTREE_EVENT_EXPAND
static intTREE_EVENT_LCLICK_2
static intTREE_EVENT_RCLICK_1
static intTREE_EVENT_RCLICK_2
static intTREE_EVENT_SELECTION
Define the event type constants
static intTREE_EVENT_WILLCOLLAPSE
static intTREE_EVENT_WILLEXPAND
Constructor Summary
Listener(TreeTable2 treeTable)
Constructor
Method Summary
voidaddCase(int nodeType, int eventType, DataNodeEventHandler listener)
voidmouseClicked(MouseEvent evt)
MouseListener implementation
voidremoveCase(int nodeType)
voidremoveCase(int nodeType, int eventType)
voidtreeCollapsed(TreeExpansionEvent evt)
TreeExpansionListener implementation
voidtreeExpanded(TreeExpansionEvent evt)
TreeExpansionListener implementation
voidtreeWillCollapse(TreeExpansionEvent evt)
TreeWillExpandListener implementation
voidtreeWillExpand(TreeExpansionEvent evt)
TreeWillExpandListener implementation
voidvalueChanged(TreeSelectionEvent evt)
TreeSelectionListener implementation
voidvalueChanged(ListSelectionEvent evt)
ListSelectionListener implementation

Field Detail

TABLE_EVENT_ANY

public static final int TABLE_EVENT_ANY

TABLE_EVENT_LCLICK_1

public static final int TABLE_EVENT_LCLICK_1

TABLE_EVENT_LCLICK_2

public static final int TABLE_EVENT_LCLICK_2

TABLE_EVENT_RCLICK_1

public static final int TABLE_EVENT_RCLICK_1

TABLE_EVENT_RCLICK_2

public static final int TABLE_EVENT_RCLICK_2

TREE_EVENT_ANY

public static final int TREE_EVENT_ANY

TREE_EVENT_COLLAPSE

public static final int TREE_EVENT_COLLAPSE

TREE_EVENT_EXPAND

public static final int TREE_EVENT_EXPAND

TREE_EVENT_LCLICK_2

public static final int TREE_EVENT_LCLICK_2

TREE_EVENT_RCLICK_1

public static final int TREE_EVENT_RCLICK_1

TREE_EVENT_RCLICK_2

public static final int TREE_EVENT_RCLICK_2

TREE_EVENT_SELECTION

public static final int TREE_EVENT_SELECTION
Define the event type constants

TREE_EVENT_WILLCOLLAPSE

public static final int TREE_EVENT_WILLCOLLAPSE

TREE_EVENT_WILLEXPAND

public static final int TREE_EVENT_WILLEXPAND

Constructor Detail

Listener

public Listener(TreeTable2 treeTable)
Constructor

Method Detail

addCase

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

mouseClicked

public void mouseClicked(MouseEvent evt)
MouseListener implementation

removeCase

public void removeCase(int nodeType)

removeCase

public void removeCase(int nodeType, int eventType)

treeCollapsed

public void treeCollapsed(TreeExpansionEvent evt)
TreeExpansionListener implementation

treeExpanded

public void treeExpanded(TreeExpansionEvent evt)
TreeExpansionListener implementation

treeWillCollapse

public void treeWillCollapse(TreeExpansionEvent evt)
TreeWillExpandListener implementation

treeWillExpand

public void treeWillExpand(TreeExpansionEvent evt)
TreeWillExpandListener implementation

valueChanged

public void valueChanged(TreeSelectionEvent evt)
TreeSelectionListener implementation

valueChanged

public void valueChanged(ListSelectionEvent evt)
ListSelectionListener implementation