|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.browser.AbstractConceptView
This is an abstract implementation of the ConceptView
interface.
Field Summary | |
protected ConceptListManager |
clm
|
protected ApplicationConfiguration |
default_configuration
|
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 | |
AbstractConceptView()
|
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. |
void |
find()
Searches the text displayed in the JEditorPane
for the given search_term. |
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 |
removeDataChangeListener(DataChangeListener dcl)
Removes the specified DataChangeListener . |
void |
resetDataChanged()
Sets the data changed flag to false . |
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 ConceptView . |
void |
setFontPointSize(int point_size)
Sets the font point size for this ConceptView . |
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.browser.ConceptView |
getContentType, getFinderHandler, setConcept |
Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable |
getName, getPanel, hasAdvancedOptions, showOptions |
Methods inherited from interface gov.nih.nlm.mms.Configurable |
resetToDefaults |
Methods inherited from interface gov.nih.nlm.mms.browser.FullyPrintable |
getPrintable, print |
Field Detail |
protected ConceptListManager clm
protected UserConfiguration user_configuration
protected ApplicationConfiguration default_configuration
protected boolean has_data_changed
protected int font_point_size
protected String font_family
Constructor Detail |
public AbstractConceptView()
Method Detail |
public void subsetDirectoryOpened(File source_dir)
subsetDirectoryOpened
in interface ConceptView
source_dir
- the source directorypublic void setConceptListManager(ConceptListManager clm)
ConceptListManager
.
setConceptListManager
in interface ConceptView
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 ConceptView
s.
compareTo
in interface Comparable
o
- the Object to be compared.
ClassCastException
- if the specified object's type is not
GUIConfigurable
.public void find()
JEditorPane
for the given search_term. Starts the search at the given
start position within the text.
public void setFontPointSize(int point_size)
ConceptView
.
setFontPointSize
in interface ConceptView
point_size
- int
public void setFontFamily(String font_family)
ConceptView
.
setFontFamily
in interface ConceptView
font_family
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |