JIDE 3.5.15

com.jidesoft.grid
Class GroupTableInputListener

java.lang.Object
  extended by com.jidesoft.grid.GroupTableInputListener
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, EventListener

public class GroupTableInputListener
extends Object
implements MouseListener, MouseMotionListener, KeyListener

The input listener for GroupTableHeader.


Constructor Summary
GroupTableInputListener(GroupTableHeader header)
          The constructor
 
Method Summary
protected  boolean isDropAllowed(TableColumn column, Rectangle dropArea, int dropSide)
          You can use this method to control the behavior of the mouse dragging.
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
protected  void loadTablePreference(String pref)
          Loads the table preference after grouping or ungrouping.
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
protected  String saveTablePreference()
          Saves table preference before grouping or ungrouping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupTableInputListener

public GroupTableInputListener(GroupTableHeader header)
The constructor

Parameters:
header - the GroupTableHeader
Method Detail

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

isDropAllowed

protected boolean isDropAllowed(TableColumn column,
                                Rectangle dropArea,
                                int dropSide)
You can use this method to control the behavior of the mouse dragging. For example, you can just return false if you don't want the customer to move any columns.

The default implementation of this method is just to return true. So it allows any dragging and drop behavior provided by JIDE jars.

Parameters:
column - the column being dragged
dropArea - the area to be drawn as dropped in indication
dropSide - the drop side
Returns:
true if you allow the drop action. Otherwise false.

saveTablePreference

protected String saveTablePreference()
Saves table preference before grouping or ungrouping.

Returns:
the saved preference string
Since:
3.3.0

loadTablePreference

protected void loadTablePreference(String pref)
Loads the table preference after grouping or ungrouping.

Parameters:
pref - the preference string
Since:
3.3.0

JIDE 3.5.15