gov.nih.nlm.mms.filters
Class RemoveByTermgroupListSelectionListener

java.lang.Object
  extended bygov.nih.nlm.mms.filters.RemoveByTermgroupListSelectionListener
All Implemented Interfaces:
EventListener, IgnorableListener, ListSelectionListener, TableSortListener

public class RemoveByTermgroupListSelectionListener
extends Object
implements ListSelectionListener, IgnorableListener, TableSortListener

List selection listener for the remove term types table. Initializes and updates selections on the the removable term types table.

Author:
Deborah Shapiro, Brian Carlsen

Constructor Summary
RemoveByTermgroupListSelectionListener(RemoveByTermgroupFilter filter, SortableJTable table)
          Instantiates a RemoveByTermgroupListSelectionListener with the specified RemoveByTermgroupFilter and SortableJTable.
 
Method Summary
 void addRemovableTermgroup(int row)
          Selects a row and adds the SourceTermType on that row to the list of removable SourceTermTypes.
 boolean ignoreEvents()
          Returns boolean to indicate whether or not ListSelectionEvents are to be ignored.
 void removeRemovableTermgroup(int row)
          Deselects row and removes the SourceTermType on that row from the list of removable SourceTermTypes.
 void setIgnoreEvents(boolean b)
          Turns off responses to the ListSelectionEvents.
 void setSelections()
           
 void tableSortFinished(TableSortEvent e)
          Handle finish of table sorting.
 void tableSortStarted(TableSortEvent e)
          Handle start of table sorting.
 void valueChanged(ListSelectionEvent e)
          Listens for changes in the list and validates them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveByTermgroupListSelectionListener

public RemoveByTermgroupListSelectionListener(RemoveByTermgroupFilter filter,
                                              SortableJTable table)
Instantiates a RemoveByTermgroupListSelectionListener with the specified RemoveByTermgroupFilter and SortableJTable.

Parameters:
filter - the parent filter RemoveByTermgroupFilter
table - the SortableJTable of SourceTermTypes
Method Detail

setSelections

public void setSelections()

valueChanged

public void valueChanged(ListSelectionEvent e)
Listens for changes in the list and validates them.

Specified by:
valueChanged in interface ListSelectionListener
Parameters:
e - the ListSelectionEvent

ignoreEvents

public boolean ignoreEvents()
Returns boolean to indicate whether or not ListSelectionEvents are to be ignored.

Specified by:
ignoreEvents in interface IgnorableListener
Returns:
boolean

setIgnoreEvents

public void setIgnoreEvents(boolean b)
Turns off responses to the ListSelectionEvents.

Specified by:
setIgnoreEvents in interface IgnorableListener
Parameters:
b - boolean true if events are to be ignored false if events are to be processed

addRemovableTermgroup

public void addRemovableTermgroup(int row)
Selects a row and adds the SourceTermType on that row to the list of removable SourceTermTypes.

Parameters:
row - number to be selected and removed

removeRemovableTermgroup

public void removeRemovableTermgroup(int row)
Deselects row and removes the SourceTermType on that row from the list of removable SourceTermTypes.

Parameters:
row - number to be deselected and not removed

tableSortStarted

public void tableSortStarted(TableSortEvent e)
Handle start of table sorting.

Specified by:
tableSortStarted in interface TableSortListener
Parameters:
e - TableSortEvent

tableSortFinished

public void tableSortFinished(TableSortEvent e)
Handle finish of table sorting.

Specified by:
tableSortFinished in interface TableSortListener
Parameters:
e - TableSortEvent


Copyright ©2005