com.bff.musicjukebox.ui.components
Class HideTableColumnListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by com.bff.musicjukebox.ui.components.HideTableColumnListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class HideTableColumnListener
extends java.awt.event.MouseAdapter
implements java.awt.event.ActionListener


Constructor Summary
HideTableColumnListener(javax.swing.JTable table)
          Default Class Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Implementation of ActionListener interface used by the menu items to hide columns.
 void dispose()
          Method used to dispose of system resources allocated by the class.
protected  void finalize()
          Method called by the garbage collector when it determines that there are no more references to the object.
 void initHiddenColumns()
           
 void mouseClicked(java.awt.event.MouseEvent e)
          Implementation of MouseListener interface used to show the popup menu.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HideTableColumnListener

public HideTableColumnListener(javax.swing.JTable table)
Default Class Constructor.

Parameters:
table - the JTable to which the listener is been added.
Method Detail

initHiddenColumns

public void initHiddenColumns()

dispose

public void dispose()
Method used to dispose of system resources allocated by the class. It removes all Listeners from the JTableHeader and the JCheckBoxMenuItems.

THIS METHOD MUST BE CALLED WHEN THE ASSOCIATED JTABLE OBJECT IS NO LONGER IN USE (table is been disposed).


finalize

protected void finalize()
                 throws java.lang.Throwable
Method called by the garbage collector when it determines that there are no more references to the object. It calls the dispose() method to dispose of system resources.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable - - the Exception raised by this method

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Implementation of ActionListener interface used by the menu items to hide columns.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - an ActionEvent

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Implementation of MouseListener interface used to show the popup menu.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter
Parameters:
e - a MouseEvent