org.openorb.board.shared.board
Class BoardTableListener

java.lang.Object
  extended by javax.swing.event.MouseInputAdapter
      extended by org.openorb.board.shared.board.BoardTableListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.event.MouseInputListener

public class BoardTableListener
extends javax.swing.event.MouseInputAdapter
implements javax.swing.event.ListSelectionListener


Field Summary
static int EVENT_ALL
          Define the event type constants
static int EVENT_LCLICK_1
           
static int EVENT_LCLICK_2
           
static int EVENT_SELECTION
           
 
Constructor Summary
BoardTableListener()
          Constructor
 
Method Summary
 void addCase(int cellType, int eventType, BoardEventHandler listener)
           
 void mouseClicked(java.awt.event.MouseEvent evt)
          MouseListener implementation
 void removeCase(int cellType)
           
 void removeCase(int cellType, int eventType)
           
 void valueChanged(javax.swing.event.ListSelectionEvent evt)
          ListSelectionListener 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

EVENT_ALL

public static final int EVENT_ALL
Define the event type constants

See Also:
Constant Field Values

EVENT_SELECTION

public static final int EVENT_SELECTION
See Also:
Constant Field Values

EVENT_LCLICK_1

public static final int EVENT_LCLICK_1
See Also:
Constant Field Values

EVENT_LCLICK_2

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

BoardTableListener

public BoardTableListener()
Constructor

Method Detail

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 cellType,
                    int eventType,
                    BoardEventHandler listener)

removeCase

public void removeCase(int cellType)

removeCase

public void removeCase(int cellType,
                       int eventType)