gov.nih.nlm.mms.filters
Class SemanticTypesToRemoveListSelectionListener

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

public class SemanticTypesToRemoveListSelectionListener
extends Object
implements ListSelectionListener, IgnorableListener

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

Author:
Deborah Shapiro, Brian Carlsen

Constructor Summary
SemanticTypesToRemoveListSelectionListener(SemanticTypesToRemoveFilter filter, SemanticTypesToRemoveJTable table)
          Instantiates a SemanticTypesToRemoveListSelectionListener from the specified filter and table.
 
Method Summary
 boolean ignoreEvents()
          Indicates whether or not events are being ignored.
 void setIgnoreEvents(boolean b)
          Sets the flag indicating whether or not to ignore events.
 void setSelections(List str)
          Sets selections on the SemanticTypesToRemoveJTable based on the semantic types data structure in the SemanticTypesToRemoveFilter.
 void valueChanged(ListSelectionEvent e)
          Handles ListSelectionEvents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemanticTypesToRemoveListSelectionListener

public SemanticTypesToRemoveListSelectionListener(SemanticTypesToRemoveFilter filter,
                                                  SemanticTypesToRemoveJTable table)
Instantiates a SemanticTypesToRemoveListSelectionListener from the specified filter and table.

Parameters:
filter - the SemanticTypesToRemoveFilter
table - the SemanticTypesToRemoveJTable
Method Detail

setSelections

public void setSelections(List str)
Sets selections on the SemanticTypesToRemoveJTable based on the semantic types data structure in the SemanticTypesToRemoveFilter. Records initial set of selected semantic types in order to determine at later points whether selections have changed.

Parameters:
str - List of HierarchicalSemanticTypes to be excluded from subset

valueChanged

public void valueChanged(ListSelectionEvent e)
Handles ListSelectionEvents.

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

ignoreEvents

public boolean ignoreEvents()
Indicates whether or not events are being ignored.

Specified by:
ignoreEvents in interface IgnorableListener
Returns:
true if so; false otherwise

setIgnoreEvents

public void setIgnoreEvents(boolean b)
Sets the flag indicating whether or not to ignore events.

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