|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.basic.BasicTableUI.MouseInputHandler
ilog.cpl.table.IlpBasicTableUI.IlpMouseInputHandler
public class IlpBasicTableUI.IlpMouseInputHandler
This class should be treated as a protected inner class.
Instantiate it only within subclasses of BasicTableUI.
This class is redefined to allow selection across the
IlpJTable used to display fixed columns and the
IlpJTable used to display free columns.
The mouse events are forwarded to the right IlpJTable
according to the mouse location within the IlpTableView.
| Field Summary | |
|---|---|
protected JTable |
targetTable
The IlpJTable where the drag event occurred (table for fixed
columns or table for free columns). |
| Constructor Summary | |
|---|---|
IlpBasicTableUI.IlpMouseInputHandler()
|
|
| Method Summary | |
|---|---|
void |
mouseDragged(MouseEvent e)
Defines the behavior of the IlpTableView when the mouse is
dragged over the contained IlpJTable. |
void |
mousePressed(MouseEvent e)
Checks whether the event has to be managed, sets the adjusting flag on the selectionModel used by the IlpTableView and
initializes the IlpJTable which is the "target" of the event. |
void |
mouseReleased(MouseEvent e)
Checks whether the event has to be managed, clears the adjusting flag on the selectionModel used by the IlpTableView, and restores the
original IlpJTable. |
protected void |
normalMouseDragged(MouseEvent e)
Does the same as super.mouseDragged but uses
targetTable instead of table. |
protected void |
setValueIsAdjusting(boolean flag)
Sets the adjusting value for the selection model of the IlpTableView. |
protected boolean |
shouldIgnore(MouseEvent e)
Returns true if the IlpTableView has to manage the given event. |
| Methods inherited from class javax.swing.plaf.basic.BasicTableUI.MouseInputHandler |
|---|
mouseClicked, mouseEntered, mouseExited, mouseMoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JTable targetTable
IlpJTable where the drag event occurred (table for fixed
columns or table for free columns).
| Constructor Detail |
|---|
public IlpBasicTableUI.IlpMouseInputHandler()
| Method Detail |
|---|
public void mousePressed(MouseEvent e)
selectionModel used by the IlpTableView and
initializes the IlpJTable which is the "target" of the event.
At the beginning, the target table is the table.
mousePressed in interface MouseListenermousePressed in class BasicTableUI.MouseInputHandlere - The event to manage.public void mouseDragged(MouseEvent e)
IlpTableView when the mouse is
dragged over the contained IlpJTable.
mouseDragged in interface MouseMotionListenermouseDragged in class BasicTableUI.MouseInputHandlere - The event to manage.protected void normalMouseDragged(MouseEvent e)
super.mouseDragged but uses
targetTable instead of table.
public void mouseReleased(MouseEvent e)
selectionModel used by the IlpTableView, and restores the
original IlpJTable.
mouseReleased in interface MouseListenermouseReleased in class BasicTableUI.MouseInputHandlere - The event to manage.protected boolean shouldIgnore(MouseEvent e)
true if the IlpTableView has to manage the given event.
e - The event to check.
IlpTableView.protected void setValueIsAdjusting(boolean flag)
IlpTableView.
flag - Specifies whether the UI adjusts the selection.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||