gov.nih.nlm.mms.filters
Class SuppressibleTermgroupsListSelectionListener

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

public class SuppressibleTermgroupsListSelectionListener
extends Object
implements ListSelectionListener, IgnorableListener, TableSortListener

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

Author:
Deborah Shapiro, Brian Carlsen

Constructor Summary
SuppressibleTermgroupsListSelectionListener(SuppressibleTermgroupsFilter filter, SortableJTable table)
          Instantiates a SuppressibleTermgroupsListSelectionListener with the specified SuppressibleTermgroupsFilter and SortableJTable.
 
Method Summary
 void addSuppressibleTermgroup(int row)
          Selects a row and adds the SourceTermType on that row to the list of suppressible SourceTermTypes.
 boolean ignoreEvents()
          Returns boolean to indicate whether or not ListSelectionEvents are to be ignored.
 void removeSuppressibleTermgroup(int row)
          Deselects row and removes the SourceTermType on that row from the list of suppressible SourceTermTypes.
 void setIgnoreEvents(boolean b)
          Turns off responses to the ListSelectionEvents.
 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

SuppressibleTermgroupsListSelectionListener

public SuppressibleTermgroupsListSelectionListener(SuppressibleTermgroupsFilter filter,
                                                   SortableJTable table)
Instantiates a SuppressibleTermgroupsListSelectionListener with the specified SuppressibleTermgroupsFilter and SortableJTable.

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

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

addSuppressibleTermgroup

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

Parameters:
row - number to be selected and suppressed

removeSuppressibleTermgroup

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

Parameters:
row - number to be deselected and not suppressed

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