|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.browser.ExpansionState
public class ExpansionState
Holds expansion state of nodes of ConceptView.
| Constructor Summary | |
|---|---|
ExpansionState()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears all data indicating nodes that should or should not be expanded. |
void |
clearNonPersistent()
Clears all non-persistent data indicating nodes that should or should not be expanded. |
int |
getPageNumber(String key)
Returns the page which holds the node associated with the given key. |
boolean |
isExpanded(String key,
boolean persistent)
Indicates if the node associated with the given key is expanded on the ConceptView. |
boolean |
isPageMode(String key)
Returns whether or not the node associated with the given key is displayed in page mode or not. |
boolean |
isShowAllPagesMode(String key)
Returns whether or not the node associated with the given key is displayed in page mode or not. |
void |
resetPageNumbers()
Resets all files being shown in page mode to page 1. |
void |
setExpanded(String key,
boolean persistent,
boolean expanded)
Indicates whether or not the node associated with the given key should be expanded on the ConceptView. |
void |
setPageMode(String key,
boolean pageMode)
Indicates whether or not the node associated with the given key should be displayed in page mode or not. |
void |
setPageNumber(String key,
int page)
Sets the page on which the node associated with the given page will be displayed. |
void |
setShowAllPagesMode(String key,
boolean showAllPagesMode)
Indicates whether or not the node associated with the given key should be displayed in page mode or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpansionState()
| Method Detail |
|---|
public boolean isExpanded(String key,
boolean persistent)
ConceptView.
key - identifies nodepersistent - queries if this node is always expanded irregardless of current concept
true if node is expanded
false otherwise
public void setExpanded(String key,
boolean persistent,
boolean expanded)
ConceptView.
key - identifies nodepersistent - indicates if this node should be permanently expandedexpanded - true indicates that node should display expanded
false indicates that node should display not expandedpublic boolean isPageMode(String key)
key - node identifier
true if node is displayed in page mode
false node is displayed in all mode
public void setPageMode(String key,
boolean pageMode)
key - node identifierpageMode - true if node should be displayed in page mode
false if node should be displayed in all modepublic boolean isShowAllPagesMode(String key)
key - node identifier
true if node is displayed in all mode
false node is displayed in page mode
public void setShowAllPagesMode(String key,
boolean showAllPagesMode)
key - node identifiershowAllPagesMode - true if node should be displayed in all mode
false if node should be displayed in page modepublic int getPageNumber(String key)
key - node identifier
public void setPageNumber(String key,
int page)
key - node identifierpage - page numberpublic void resetPageNumbers()
public void clear()
public void clearNonPersistent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||