|
|||||||||
| 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.ExpandableRawView
public class ExpandableRawView
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 |
ExpandableRawView.PopupListener
Listens to display the JPopupMenu |
| Field Summary | |
|---|---|
protected String[] |
change_files
|
protected Map |
raw_concept_map
|
protected Map |
raw_history_map
|
protected Map |
raw_metadata_map
|
| 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 | |
|---|---|
ExpandableRawView()
Instantiates a ExpandableRawView. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addDataChangeListener(DataChangeListener dcl)
Adds a DataChangeListener that responds to configuration changes. |
ExpandableRawView |
getClone()
|
String |
getContentType()
Returns the content type used for the JEditorPane display. |
ExpansionState |
getExpansionState()
Returns the node ExpansionState. |
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 Should be called from a new Thread(). |
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 |
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 |
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, setSearchOptions |
| 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 |
| Field Detail |
|---|
protected String[] change_files
protected Map raw_concept_map
protected Map raw_history_map
protected Map raw_metadata_map
| Constructor Detail |
|---|
public ExpandableRawView()
ExpandableRawView.
| Method Detail |
|---|
public ExpansionState getExpansionState()
ExpansionState.
ExpansionState.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 void requestFocus()
requestFocus in interface ConceptViewpublic void setConcept(Concept concept)
Concept to be displayed.
Should be called from a new Thread().
setConcept in interface ConceptViewconcept - Conceptpublic FinderHandler getFinderHandler()
FinderHandler that will execute the find operation
for this ConceptView
getFinderHandler in interface ConceptViewFinderHandlerpublic void refresh()
refresh in interface ConceptViewrefresh in class AbstractConceptViewpublic 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 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 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 String getName()
getName in interface GUIConfigurablegetName in class AbstractGUIConfigurablepublic void setPageSize(int page_size)
page_size - intpublic 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 ExpandableRawView getClone()
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 | ||||||||