gov.nih.nlm.mms.browser
Class SemanticTypesBrowserRestrictorFilter

java.lang.Object
  extended by gov.nih.nlm.mms.AbstractGUIConfigurable
      extended by gov.nih.nlm.mms.filters.AbstractFilter
          extended by gov.nih.nlm.mms.filters.SemanticTypesToRemoveFilter
              extended by gov.nih.nlm.mms.browser.SemanticTypesBrowserRestrictorFilter
All Implemented Interfaces:
Configurable, ConceptSelector, Filter, GUIConfigurable, SubsetListener, IgnorableListener, TableSortListener, Comparable, EventListener, ListSelectionListener

public class SemanticTypesBrowserRestrictorFilter
extends SemanticTypesToRemoveFilter
implements TableSortListener, IgnorableListener

This Filter subclass acts as the SemanticTypesToRemoveFilter, but limits the functionality by removing the include/exclude toggle and documentation.

Author:
Deborah Shapiro

Field Summary
 
Fields inherited from class gov.nih.nlm.mms.filters.SemanticTypesToRemoveFilter
any_sty, full_panel, ignore_events, keep_stys, panel, remove_selected_stys, remove_stys, semantic_type_table, semantic_types_to_remove
 
Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter
init_cui, subset_content, warnings
 
Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
data_changed, default_configuration, listeners, user_configuration
 
Constructor Summary
SemanticTypesBrowserRestrictorFilter()
          No-arg constructor
SemanticTypesBrowserRestrictorFilter(SemanticTypesBrowserRestrictor br)
          Constructor for SemanticTypesBrowserRestrictorFilter
 
Method Summary
 JPanel getPanel()
          Returns the GUI panel that will display the filter's screen .
 String getTabDescription()
          Returns the description.
 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 setPanelSelections()
          Applies filter state to panel selections.
 void tableSortFinished(TableSortEvent e)
          Handle finish of table sorting.
 void tableSortStarted(TableSortEvent e)
          Handle start of table sorting.
 void valueChanged(ListSelectionEvent e)
          Sets the list of languages to be excluded when selection changes.
 
Methods inherited from class gov.nih.nlm.mms.filters.SemanticTypesToRemoveFilter
addSemanticTypeToRemove, anySty, getAutomaticSelection, getColor, getConfigurationDetails, getHelpPanel, getName, getProperties, getSemanticTypeChildrenAsSet, getSemanticTypesToRemove, getSTYForString, hasAdvancedOptions, isEfficientEnabled, isSemanticTypeToRemove, keep, removeSelectedSemanticTypes, removeSemanticTypeToRemove, resetToDefaults, setAnySty, setProperties, setRemoveSelectedSemanticTypes, setSemanticTypesToRemove, showOptions
 
Methods inherited from class gov.nih.nlm.mms.filters.AbstractFilter
applyFilter, beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, fireDataChanged, fireNotUndoableDataChanged, getValidateMessage, getWarnings, setCuiList
 
Methods inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable
addDataChangeListener, addValidationError, addValidationWarning, clearValidationErrors, clearValidationWarnings, compareTo, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setConfiguration, setConfiguration, setDataChanged, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nih.nlm.mms.filters.Filter
applyFilter, getWarnings
 
Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable
addDataChangeListener, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, validate
 
Methods inherited from interface gov.nih.nlm.mms.Configurable
setConfiguration, setConfiguration
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface gov.nih.nlm.mms.SubsetListener
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList
 

Constructor Detail

SemanticTypesBrowserRestrictorFilter

public SemanticTypesBrowserRestrictorFilter()
No-arg constructor


SemanticTypesBrowserRestrictorFilter

public SemanticTypesBrowserRestrictorFilter(SemanticTypesBrowserRestrictor br)
Constructor for SemanticTypesBrowserRestrictorFilter

Parameters:
br - SemanticTypesBrowserRestrictor
Method Detail

getPanel

public JPanel getPanel()
Returns the GUI panel that will display the filter's screen . This code is similar to the superclass method except it doesn't display the include/exclude toggle sub-panel.

Specified by:
getPanel in interface GUIConfigurable
Overrides:
getPanel in class SemanticTypesToRemoveFilter
Returns:
JPanel that displays graphical interface for the filter

setPanelSelections

public void setPanelSelections()
Applies filter state to panel selections.

Specified by:
setPanelSelections in interface GUIConfigurable
Overrides:
setPanelSelections in class SemanticTypesToRemoveFilter

getTabDescription

public String getTabDescription()
Returns the description.

Specified by:
getTabDescription in interface GUIConfigurable
Overrides:
getTabDescription in class SemanticTypesToRemoveFilter
Returns:
the description

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 true to be ignored false otherwise

setIgnoreEvents

public void setIgnoreEvents(boolean b)
Method that turns off responses to the ListSelectionEvents

Specified by:
setIgnoreEvents in interface IgnorableListener
Parameters:
b - boolean

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

valueChanged

public void valueChanged(ListSelectionEvent e)
Sets the list of languages to be excluded when selection changes.

Specified by:
valueChanged in interface ListSelectionListener
Overrides:
valueChanged in class SemanticTypesToRemoveFilter
Parameters:
e - ListSelectionEvent


Copyright ©2005