|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.TableMouseWheelListener
TableMouseWheelListener
responds to
MouseWheelEvents
and passes adjust the scrollbars appropriately.
Field Summary | |
protected com.klg.jclass.table.JCTable |
table
|
Constructor Summary | |
TableMouseWheelListener(com.klg.jclass.table.JCTable table)
Note the table code to add a mouse wheel listener expects exactly one constructor. |
Method Summary | |
com.klg.jclass.table.JCTable |
getTable()
Get the table to which this listener will change in response to MouseWheelEvents |
void |
mouseWheelMoved(MouseWheelEvent e)
Respond to mouse wheel being moved |
protected void |
scrollByBlock(JScrollBar scrollbar,
int direction)
Scroll by block |
protected void |
scrollByUnits(JScrollBar scrollbar,
int direction,
int units)
Scroll by units |
void |
setTable(com.klg.jclass.table.JCTable table)
Set the table to which this listener will change in response to MouseWheelEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.table.JCTable table
Constructor Detail |
public TableMouseWheelListener(com.klg.jclass.table.JCTable table)
table
- The table to which the listener is addedMethod Detail |
public void setTable(com.klg.jclass.table.JCTable table)
table
- The new tablepublic com.klg.jclass.table.JCTable getTable()
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
e
- The event generated by the mouse wheel movementprotected void scrollByBlock(JScrollBar scrollbar, int direction)
scrollbar
- The scroll bar to changedirection
- The direction of changeprotected void scrollByUnits(JScrollBar scrollbar, int direction, int units)
scrollbar
- The scroll bar to changedirection
- The direction of changeunits
- The number of units to scroll
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |