|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.browser.AbstractFinder
Abstract implementation of the Finder
interface.
Field Summary | |
protected ConceptListManager |
clm
|
protected String |
font_family
|
protected int |
font_point_size
|
protected boolean |
has_data_changed
Indicates whether or not filter data has changed (and therefore needs to be saved). |
protected UserConfiguration |
user_configuration
|
Constructor Summary | |
AbstractFinder()
Instantiates a WordSearchFinder . |
Method Summary | |
void |
addDataChangeListener(DataChangeListener dcl)
Adds a DataChangeListener that responds to configuration changes. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
Color |
getColor()
Returns the Color that should be used to display
the name. |
String |
getConfigurationDetails()
Method returns a String detailing
the user selections on the filter. |
GUIConfigurable |
getGUIConfigurableForValidationFailure()
Returns the GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning. |
JPanel |
getHelpPanel()
Returns a JPanel that will be displayed when the
user selects the corresponding menu item from the Help menu
and will provide the user with detailed instructions on the tab's use. |
Properties |
getProperties()
Returns the Properties representing the configuration choices. |
String |
getTabDescription()
Returns the description to be used in conjunction with the panel when presented to the user. |
String |
getValidateMessage()
Returns a message indicating why validation failed. |
String[] |
getValidationErrors()
Returns the messages indicating why validation failed. |
String[] |
getValidationWarnings()
Returns warnings that were indicated during validation. |
boolean |
hasDataChanged()
Indicates whether or not the configuration information has changed. |
void |
refresh()
Redraws the text portions of the Finder . |
void |
removeDataChangeListener(DataChangeListener dcl)
Removes the specified DataChangeListener . |
void |
resetDataChanged()
Sets the data changed flag to false . |
void |
setConceptListManager(ConceptListManager clm)
Returns the ConceptListManager . |
void |
setConfiguration(ApplicationConfiguration c)
Method provides the filter with values from the default configuration file. |
void |
setConfiguration(UserConfiguration c)
Method provides the filter with values from the user configuration file. |
void |
setDataChanged(boolean b)
Sets the value of the data changed flag. |
void |
setFontFamily(String font_family)
Sets the font family for this Finder . |
void |
setFontPointSize(int point_size)
Sets the font point size for this Finder . |
void |
setPanelSelections()
Updates the view to reflect the data model. |
void |
setProperties(Properties p)
Sets the Properties representing the configuration choices. |
void |
subsetDirectoryOpened(File source_dir)
Handles opening of a source directory. |
boolean |
validate()
Indicates whether or not the validation rules have passed. |
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.GUIConfigurable |
getName, getPanel, hasAdvancedOptions, showOptions |
Methods inherited from interface gov.nih.nlm.mms.Configurable |
resetToDefaults |
Field Detail |
protected ConceptListManager clm
protected UserConfiguration user_configuration
protected String font_family
protected int font_point_size
protected boolean has_data_changed
Constructor Detail |
public AbstractFinder()
WordSearchFinder
.
Method Detail |
public void setConceptListManager(ConceptListManager clm)
ConceptListManager
.
setConceptListManager
in interface Finder
clm
- ConceptListManager
public void setConfiguration(ApplicationConfiguration c)
setConfiguration
in interface Configurable
c
- ApplicationConfiguration
public void setConfiguration(UserConfiguration c)
setConfiguration
in interface Configurable
c
- UserConfiguration
public String getConfigurationDetails()
String
detailing
the user selections on the filter. This String
will
be displayed in the mmsys.log at the completion of subsetting
so it should be formatted to be easily read.
getConfigurationDetails
in interface Configurable
String
of data for logpublic Properties getProperties()
Properties
representing the configuration choices.
getProperties
in interface Configurable
Properties
representing the configuration choicespublic void setProperties(Properties p)
Properties
representing the configuration choices.
setProperties
in interface Configurable
p
- the Properties
representing the configuration choicespublic boolean hasDataChanged()
hasDataChanged
in interface GUIConfigurable
true
if data has changed;
false
otherwisepublic void setDataChanged(boolean b)
setDataChanged
in interface GUIConfigurable
b
- the boolean
value for the data changed flagpublic void resetDataChanged()
false
.
resetDataChanged
in interface GUIConfigurable
public void addDataChangeListener(DataChangeListener dcl)
DataChangeListener
that responds to configuration changes.
Allows main GUI to record all changes to
this gui in the undo/redo mechanism.
addDataChangeListener
in interface GUIConfigurable
dcl
- the DataChangeListener
to addpublic void removeDataChangeListener(DataChangeListener dcl)
DataChangeListener
.
removeDataChangeListener
in interface GUIConfigurable
dcl
- the DataChangeListener
to removepublic Color getColor()
Color
that should be used to display
the name.
getColor
in interface GUIConfigurable
Color
that should be used to display the name.public String getTabDescription()
getTabDescription
in interface GUIConfigurable
public JPanel getHelpPanel()
JPanel
that will be displayed when the
user selects the corresponding menu item from the Help menu
and will provide the user with detailed instructions on the tab's use.
getHelpPanel
in interface GUIConfigurable
JPanel
to be used when showing user helppublic void setPanelSelections()
setPanelSelections
in interface GUIConfigurable
public boolean validate()
validate
in interface GUIConfigurable
boolean
true
if so;
false
otherwisepublic String getValidateMessage()
validate()
returns false
.
public String[] getValidationErrors()
validate()
returns false
.
getValidationErrors
in interface GUIConfigurable
public String[] getValidationWarnings()
getValidationWarnings
in interface GUIConfigurable
public GUIConfigurable getGUIConfigurableForValidationFailure()
GUIConfigurable
whose tab should next be displayed
to allow the user to correct an error or warning.
getGUIConfigurableForValidationFailure
in interface GUIConfigurable
public int compareTo(Object o)
Required method for implementing
Comparable
interface.
Indicates the means for comparison between two Finder
s.
compareTo
in interface Comparable
o
- the Object to be compared.
ClassCastException
- if the specified object's type is not
GUIConfigurable
.public void subsetDirectoryOpened(File source_dir)
subsetDirectoryOpened
in interface Finder
source_dir
- the source directorypublic void setFontPointSize(int point_size)
Finder
.
setFontPointSize
in interface Finder
point_size
- int
public void setFontFamily(String font_family)
Finder
.
setFontFamily
in interface Finder
font_family
- int
public void refresh()
Finder
.
refresh
in interface Finder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |