|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.MouseAdapter org.xnap.gui.table.TableHeaderHandler
public class TableHeaderHandler
TableHeaderHandler class handles the mouse events invoked by clicking on the header portion of the JTable.
Constructor Summary | |
---|---|
TableHeaderHandler(javax.swing.JTable jta,
SortableModel stm,
javax.swing.JPopupMenu jpm)
|
Method Summary | |
---|---|
static TableHeaderHandler |
install(javax.swing.JTable jta)
Installs listener. |
static TableHeaderHandler |
install(javax.swing.JTable jta,
javax.swing.JPopupMenu jpm)
|
static TableHeaderHandler |
install(javax.swing.JTable jta,
javax.swing.JPopupMenu jpm,
SortableModel stm)
Installs a TableHeaderHandler to jta . |
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
restoreSelections()
|
void |
setListener(TableHeaderListener thl)
|
void |
setTree(javax.swing.JTree jt)
|
void |
showPopupMenu(java.awt.event.MouseEvent e)
Displays the popup menu. |
void |
sortByColumn(int column)
|
void |
storeSelections()
|
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseEntered, mouseExited |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableHeaderHandler(javax.swing.JTable jta, SortableModel stm, javax.swing.JPopupMenu jpm)
Method Detail |
---|
public static TableHeaderHandler install(javax.swing.JTable jta, javax.swing.JPopupMenu jpm, SortableModel stm)
jta
. The handler
takes care of sorting and resizing.
The SortableTableModel parameter is needed for the JTreeTable, because it uses a TreeTableModelAdapter that wraps around the real TableModel.
public static TableHeaderHandler install(javax.swing.JTable jta, javax.swing.JPopupMenu jpm)
public static TableHeaderHandler install(javax.swing.JTable jta)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void setListener(TableHeaderListener thl)
public void setTree(javax.swing.JTree jt)
public void showPopupMenu(java.awt.event.MouseEvent e)
public void sortByColumn(int column)
public void storeSelections()
public void restoreSelections()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |