|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.browser.AbstractFinder
public abstract class AbstractFinder
Abstract implementation of the Finder interface.
All methods in this class should be called from a separate thread.
| Field Summary | |
|---|---|
protected ConceptListManager |
clm
|
protected BrowsableInputStream |
fBrowsableInputStream
|
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 an AbstractFinder. |
|
| 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. |
protected BrowsableInputStream |
getBrowsableInputStream()
|
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 |
setBrowsableInputStream(BrowsableInputStream browsableInputStream)
Sets the BrowsableInputStream. |
void |
setConceptListManager(ConceptListManager clm)
Sets 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 BrowsableInputStream fBrowsableInputStream
protected String font_family
protected int font_point_size
protected boolean has_data_changed
| Constructor Detail |
|---|
public AbstractFinder()
AbstractFinder.
| Method Detail |
|---|
public void setConceptListManager(ConceptListManager clm)
ConceptListManager.
setConceptListManager in interface Finderclm - ConceptListManagerpublic void setConfiguration(ApplicationConfiguration c)
setConfiguration in interface Configurablec - ApplicationConfigurationpublic void setConfiguration(UserConfiguration c)
setConfiguration in interface Configurablec - UserConfigurationprotected BrowsableInputStream getBrowsableInputStream()
public void setBrowsableInputStream(BrowsableInputStream browsableInputStream)
BrowsableInputStream.
setBrowsableInputStream in interface FinderbrowsableInputStream - BrowsableInputStream.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 ConfigurableString of data for logpublic Properties getProperties()
Properties representing the configuration choices.
getProperties in interface ConfigurableProperties representing the configuration choicespublic void setProperties(Properties p)
Properties representing the configuration choices.
setProperties in interface Configurablep - the Properties representing the configuration choicespublic boolean hasDataChanged()
hasDataChanged in interface GUIConfigurabletrue if data has changed;
false otherwisepublic void setDataChanged(boolean b)
setDataChanged in interface GUIConfigurableb - the boolean value for the data changed flagpublic void resetDataChanged()
false.
resetDataChanged in interface GUIConfigurablepublic 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 GUIConfigurabledcl - the DataChangeListener to addpublic void removeDataChangeListener(DataChangeListener dcl)
DataChangeListener.
removeDataChangeListener in interface GUIConfigurabledcl - the DataChangeListener to removepublic Color getColor()
Color that should be used to display
the name.
getColor in interface GUIConfigurableColor that should be used to display the name.public String getTabDescription()
getTabDescription in interface GUIConfigurablepublic 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 GUIConfigurableJPanel to be used when showing user helppublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic boolean validate()
validate in interface GUIConfigurablebooleantrue if so;
false otherwisepublic String getValidateMessage()
validate() returns false.
public String[] getValidationErrors()
validate() returns false.
getValidationErrors in interface GUIConfigurablepublic String[] getValidationWarnings()
getValidationWarnings in interface GUIConfigurablepublic GUIConfigurable getGUIConfigurableForValidationFailure()
GUIConfigurable whose tab should next be displayed
to allow the user to correct an error or warning.
getGUIConfigurableForValidationFailure in interface GUIConfigurablepublic int compareTo(Object o)
Required method for implementing
Comparable interface.
Indicates the means for comparison between two Finders.
compareTo in interface Comparableo - the Object to be compared.
ClassCastException - if the specified object's type is not
GUIConfigurable.public void subsetDirectoryOpened(File source_dir)
subsetDirectoryOpened in interface Findersource_dir - the source directorypublic void setFontPointSize(int point_size)
Finder.
setFontPointSize in interface Finderpoint_size - intpublic void setFontFamily(String font_family)
Finder.
setFontFamily in interface Finderfont_family - intpublic void refresh()
Finder.
Should be called from a new Thread().
refresh in interface Finder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||