ui.table
Class SelectionListener

java.lang.Object
  extended by ui.table.SelectionListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ListSelectionListener

public class SelectionListener
extends java.lang.Object
implements javax.swing.event.ListSelectionListener

The SelectionListener class provides a listener to a given JTable that responds to changes in the rows that are selected in a SongTable object.


Constructor Summary
SelectionListener(javax.swing.JTable table, RowCountLabel label)
          Creates a new SelectionListener object with the given JTable object and the RowCountLabel object to report the number of selected rows to.
 
Method Summary
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          The method called when the SelectionListener object is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionListener

public SelectionListener(javax.swing.JTable table,
                         RowCountLabel label)
Creates a new SelectionListener object with the given JTable object and the RowCountLabel object to report the number of selected rows to.

Parameters:
table - The table object to listen to the number of selected rows.
label - The RowCountLabel object to report the number of selected rows to.
Method Detail

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
The method called when the SelectionListener object is called. The method will determine the number of selected rows and update the RowCountLabel object.

Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
Parameters:
e - The even that calls this method.