gov.nih.nlm.mms.filters
Class AttributeTypesToRemoveListSelectionListener

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

public class AttributeTypesToRemoveListSelectionListener
extends Object
implements ListSelectionListener, IgnorableListener

List selection listener for the Attribute Types To Exclude table. Initializes and updates selections on the the attributes table. Makes selections based on user's options settings.

Author:
Deborah Shapiro, Brian Carlsen

Constructor Summary
AttributeTypesToRemoveListSelectionListener(AttributeTypesToRemoveFilter filter, SortableJTable table)
          Constructor - sets variables for parameters.
 
Method Summary
 boolean ignoreEvents()
          Method returns boolean to indicate whether or not ListSelectionEvents are to be ignored.
 void setIgnoreEvents(boolean b)
          Method that turns off responses to the ListSelectionEvents
 void setSelections(List atr)
          Sets selections on the SortableJTable based on the attribute_types_to_remove data structure in the AttributeTypesToRemoveFilter.
 void valueChanged(ListSelectionEvent e)
          Method that recognizes a ListSelectionEvent and responds by going through logic to determine if other AttType rows should be selected as well.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTypesToRemoveListSelectionListener

public AttributeTypesToRemoveListSelectionListener(AttributeTypesToRemoveFilter filter,
                                                   SortableJTable table)
Constructor - sets variables for parameters.

Parameters:
filter - AttributeTypesToRemoveFilter
table - SortableJTable
Method Detail

setSelections

public void setSelections(List atr)
Sets selections on the SortableJTable based on the attribute_types_to_remove data structure in the AttributeTypesToRemoveFilter. Records initial set of selected attribute types in order to determine at later points whether selections have changed.

Parameters:
atr - List of AttTypes to be excluded from subset

valueChanged

public void valueChanged(ListSelectionEvent e)
Method that recognizes a ListSelectionEvent and responds by going through logic to determine if other AttType rows should be selected as well.

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

ignoreEvents

public boolean ignoreEvents()
Method 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)
Method that 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


Copyright ©2005