gov.nih.nlm.mms.browser
Class SourceBrowserRestrictorFilter

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.SourcesToRemoveFilter
              extended by gov.nih.nlm.mms.browser.SourceBrowserRestrictorFilter
All Implemented Interfaces:
Configurable, ConceptContentSelector, Filter, GUIConfigurable, SubsetListener, IgnorableListener, TableSortListener, Comparable, EventListener, ListSelectionListener

public class SourceBrowserRestrictorFilter
extends SourcesToRemoveFilter
implements TableSortListener, IgnorableListener

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

Author:
Deborah Shapiro

Field Summary
protected  boolean ignore_events
           
 
Fields inherited from class gov.nih.nlm.mms.filters.SourcesToRemoveFilter
base_url, default_config, default_dependent_sources, default_sources_to_remove, dependent_sources, enforce_dep_source_selection, enforce_family_selection, filter_props, full_panel, keep_sources, panel, remove_selected_sources, remove_sources, selected_sources, source_table, user_config
 
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
SourceBrowserRestrictorFilter()
          No-arg constructor
SourceBrowserRestrictorFilter(SourceBrowserRestrictor source_br)
          Constructor for SourceBrowserRestrictorFilter
 
Method Summary
 JPanel getPanel()
          Returns the GUI panel that will display the filter's screen .
 String getTabDescription()
          Method provides the description of the filter's screen and includes instructions on use.
 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()
          Method makes selections on the filter's table
 void tableSortFinished(TableSortEvent e)
          Handle finish of table sorting.
 void tableSortStarted(TableSortEvent e)
          Handle start of table sorting.
 void valueChanged(ListSelectionEvent e)
          Sets the colors and styles for the list of languages to be excluded when selection changes.
 
Methods inherited from class gov.nih.nlm.mms.filters.SourcesToRemoveFilter
addSelectedSource, applySelections, clearSelectedSources, clearSourceDependencies, enforceDependentSourceSelection, enforceFamilySelection, getAutomaticSelection, getBaseSourceInformationURL, getColor, getConfiguration, getConfigurationDetails, getDefaultSourcesToRemove, getDefaultSourcesToRemoveAsSet, getDependentSources, getDependentSourcesAsSet, getHelpPanel, getHighlightedColor, getHighlightedTextColor, getName, getProperties, getSelectedSources, getSelectedSourcesAsSet, getSelectedSourcesInverse, getSelectedSourcesInverseAsSet, getSourceDependencies, getSourceDependenciesAsSet, getSources, getSourcesToRemove, hasAdvancedOptions, hasDependentSource, initialize, isEfficientEnabled, isSourceToRemove, removeSelectedSource, removeSelectedSources, resetToDefaults, setBaseSourceInformationURL, setConfiguration, setConfiguration, setEnforceDependentSourceSelection, setEnforceFamilySelection, setProperties, setRemoveSelectedSources, setSelectedSources, setSelectedSources, setSourceDependencies, 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, 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 java.lang.Comparable
compareTo
 
Methods inherited from interface gov.nih.nlm.mms.SubsetListener
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList
 

Field Detail

ignore_events

protected boolean ignore_events
Constructor Detail

SourceBrowserRestrictorFilter

public SourceBrowserRestrictorFilter()
No-arg constructor


SourceBrowserRestrictorFilter

public SourceBrowserRestrictorFilter(SourceBrowserRestrictor source_br)
Constructor for SourceBrowserRestrictorFilter

Parameters:
source_br -
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 SourcesToRemoveFilter
Returns:
JPanel that displays graphical interface for the filter

setPanelSelections

public void setPanelSelections()
Method makes selections on the filter's table

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

getTabDescription

public String getTabDescription()
Method provides the description of the filter's screen and includes instructions on use.

Specified by:
getTabDescription in interface GUIConfigurable
Overrides:
getTabDescription in class SourcesToRemoveFilter
Returns:
String text of instructions for use of panel

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 colors and styles for the list of languages to be excluded when selection changes.

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


Copyright ©2005