|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.AbstractGUIConfigurable
gov.nih.nlm.mms.browser.AbstractConceptView
gov.nih.nlm.mms.browser.ExpandableConceptView
public class ExpandableConceptView
ConceptView that displays the concept report with a formatted
appearance that is customizable by the user.
All methods in this class should be called from a separate thread.
| Nested Class Summary | |
|---|---|
class |
ExpandableConceptView.PopupListener
Listener to display JPopupMenu |
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.mms.browser.AbstractConceptView |
|---|
clm, fBrowsableInputStream, font_family, font_point_size, search_options |
| Fields inherited from class gov.nih.nlm.mms.AbstractGUIConfigurable |
|---|
data_changed, default_configuration, listeners, user_configuration |
| Constructor Summary | |
|---|---|
ExpandableConceptView()
Instantiates a ExpandableConceptView. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addDataChangeListener(DataChangeListener dcl)
Adds a DataChangeListener that responds to configuration changes. |
ExpandableConceptView |
getClone()
Returns a clone of the current ExpandableConceptView. |
String |
getContentType()
Returns the content type used for the JEditorPane display. |
protected ExpansionState |
getExpansionState()
|
FinderHandler |
getFinderHandler()
Indicates the FinderHandler that will execute the find operation
for this ConceptView |
String |
getName()
Returns the name. |
JPanel |
getPanel()
Returns a JPanel containing the concept report. |
String |
getPreferredAtom(Atom[] atoms,
List precedence)
Returns the preferred atom's string from amongst the given Atom[]. |
Printable |
getPrintable()
Returns the Printable that handles printing. |
Properties |
getProperties()
Method returns all properties specific to the ConceptView. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
void |
print()
Prints the concept report. |
void |
refresh()
Redraws the text for the current concept. |
void |
removeDataChangeListener(DataChangeListener dcl)
Removes the specified DataChangeListener. |
void |
requestFocus()
Cuase report_pane to request focus. |
void |
resetToDefaults()
Resets the configuration back to default values. |
void |
setAtomComparator(Comparator atom_comparator)
Sets the Comparator that will be used to sort the Atoms. |
void |
setConcept(Concept concept)
Sets the Concept to be displayed. |
void |
setPageSize(int page_size)
Sets the page size. |
void |
setProperties(Properties p)
Sets the view properties. |
void |
setRestrictor(Restrictor restrictor)
Sets the Restrictor that will be used to restrict the parts of the
Concept that will be displayed in this ConceptView. |
void |
setSearchOptions(SearchOptions so)
Sets the SearchOptions which provides the ability to
highlight or hide content in a concept view based on criteria. |
void |
showOptions()
Presents an advanced options GUI to the user. |
void |
subsetDirectoryOpened(File source_dir)
Handles opening of a source directory. |
| Methods inherited from class gov.nih.nlm.mms.browser.AbstractConceptView |
|---|
find, getBrowsableInputStream, setBrowsableInputStream, setConceptListManager, setFontFamily, setFontPointSize |
| 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 |
|---|
getColor, getGUIConfigurableForValidationFailure, getHelpPanel, getTabDescription, getValidationErrors, getValidationWarnings, hasDataChanged, resetDataChanged, setDataChanged, setPanelSelections, validate |
| Methods inherited from interface gov.nih.nlm.mms.Configurable |
|---|
getConfigurationDetails, setConfiguration, setConfiguration |
| Constructor Detail |
|---|
public ExpandableConceptView()
ExpandableConceptView.
| Method Detail |
|---|
protected ExpansionState getExpansionState()
public void setSearchOptions(SearchOptions so)
SearchOptions which provides the ability to
highlight or hide content in a concept view based on criteria.
setSearchOptions in interface ConceptViewsetSearchOptions in class AbstractConceptViewbr - public JPanel getPanel()
JPanel containing the concept report.
getPanel in interface GUIConfigurablegetPanel in class AbstractGUIConfigurableJPanel containing the concept reportpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic String getContentType()
JEditorPane display.
getContentType in interface ConceptViewpublic FinderHandler getFinderHandler()
FinderHandler that will execute the find operation
for this ConceptView
getFinderHandler in interface ConceptViewFinderHandlerpublic void requestFocus()
requestFocus in interface ConceptViewpublic void refresh()
refresh in interface ConceptViewrefresh in class AbstractConceptViewpublic void setConcept(Concept concept)
Concept to be displayed.
Should be called from a new Thread().
setConcept in interface ConceptViewconcept - Conceptpublic void setRestrictor(Restrictor restrictor)
Restrictor that will be used to restrict the parts of the
Concept that will be displayed in this ConceptView.
restrictor - Restrictorpublic void setAtomComparator(Comparator atom_comparator)
Comparator that will be used to sort the Atoms.
atom_comparator - Comparatorpublic void setPageSize(int page_size)
page_size - intpublic void resetToDefaults()
setPanelSelections to actually update the GUI.
resetToDefaults in interface ConfigurableresetToDefaults in class AbstractGUIConfigurablepublic void subsetDirectoryOpened(File source_dir)
subsetDirectoryOpened in interface ConceptViewsubsetDirectoryOpened in class AbstractConceptViewsource_dir - the source directorypublic Properties getProperties()
ConceptView.
getProperties in interface ConfigurablegetProperties in class AbstractGUIConfigurableProperties only those directly related to the concept view.public void setProperties(Properties p)
setProperties in interface ConfigurablesetProperties in class AbstractGUIConfigurablep - Propertiespublic 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 GUIConfigurableaddDataChangeListener in class AbstractGUIConfigurabledcl - the DataChangeListener to addpublic void removeDataChangeListener(DataChangeListener dcl)
DataChangeListener.
removeDataChangeListener in interface GUIConfigurableremoveDataChangeListener in class AbstractGUIConfigurabledcl - the DataChangeListener to removepublic String getName()
getName in interface GUIConfigurablegetName in class AbstractGUIConfigurablepublic void showOptions()
showOptions in interface GUIConfigurableshowOptions in class AbstractGUIConfigurablepublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurablehasAdvancedOptions in class AbstractGUIConfigurabletrue if so; false otherwise
public void print()
throws PrinterException
print in interface FullyPrintablePrinterExceptionpublic Printable getPrintable()
Printable that handles printing.
getPrintable in interface FullyPrintablePrintable that handles printingpublic ExpandableConceptView getClone()
ExpandableConceptView.
ExpandableConceptView
public String getPreferredAtom(Atom[] atoms,
List precedence)
Atom[].
Uses the Atom.AtomRankComparator and the given precidence list to do
ranking.
atoms - Atom[]precedence - List
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||