|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.browser.BrowserState
Data repository for historical information on past opened directories and viewed concepts.
Constructor Summary | |
BrowserState()
Constructor. |
Method Summary | |
void |
addDirectory(String dir,
ConceptList cl)
Adds a directory path to the history list of opened directories. |
void |
addProperties(Configurable f,
Properties props)
|
static BrowserState |
getBrowserState()
Returns the singleton reference to the BrowserState . |
static BrowserState |
getBrowserState(File file)
Returns the singleton reference to the BrowserState . |
ConceptList |
getConceptListForDirectory(String dir)
Returns the ConceptList associated with the given
directory. |
ConceptList |
getCurrentConceptList()
Returns the list of viewed concepts in the currently opened directory. |
String |
getCurrentDirectory()
Returns the current subset directory. |
String[] |
getDirectoryHistory()
Returns the last five opened directories. |
Map |
getDirectoryToConceptListMap()
Returns the map of directories to their ConceptList s. |
String |
getFontFamily()
Returns the current font family. |
int |
getFontPointSize()
Returns the current font point size. |
Properties |
getProperties(Configurable f)
|
static void |
save(File file)
Saves the BrowserState to the given File . |
void |
setDirectoryHistory(String[] history)
Resets the directory history to that given. |
void |
setDirectoryToConceptListMap(Map map)
Resets the Map of directories to their ConceptList s. |
void |
setFontFamily(String font_family)
Resets the font family to that given. |
void |
setFontPointSize(int font_point_size)
Resets the font point size to that given. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BrowserState()
Method Detail |
public static BrowserState getBrowserState()
BrowserState
.
BrowserState
public static BrowserState getBrowserState(File file) throws Exception
BrowserState
.
file
- where BrowserState
was written
BrowserState
Exception
public static void save(File file) throws Exception
BrowserState
to the given File
.
file
- File
Exception
public String[] getDirectoryHistory()
String
[] of directory pathspublic void setDirectoryHistory(String[] history)
history
- String
[]public Map getDirectoryToConceptListMap()
ConceptList
s.
Map
public void setDirectoryToConceptListMap(Map map)
Map
of directories to their ConceptList
s.
map
- Map
public ConceptList getConceptListForDirectory(String dir)
ConceptList
associated with the given
directory.
dir
- subset directory of interest
ConceptList
public String getCurrentDirectory()
String
path to subset directorypublic ConceptList getCurrentConceptList()
Concept
[] list of conceptspublic void addDirectory(String dir, ConceptList cl)
dir
- String
cl
- ConceptList
public int getFontPointSize()
int
font point sizepublic void setFontPointSize(int font_point_size)
font_point_size
- int
public String getFontFamily()
String
font familypublic void setFontFamily(String font_family)
font_family
- String
public void addProperties(Configurable f, Properties props)
public Properties getProperties(Configurable f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |