|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.display.CollapseBean
public class CollapseBean
Maintains the state of collapsible nodes in the metadata Editor. States are OPENED and CLOSED, and the default is controlled by setDefaultState.
Field Summary | |
---|---|
static String |
CLOSED
Description of the Field |
static String |
DEFAULT_STATE
Description of the Field |
static String |
OPEN
Description of the Field |
Constructor Summary | |
---|---|
CollapseBean()
Constructor for the CollapseBean object |
Method Summary | |
---|---|
void |
clear()
Removes all state information from the CollapseBean. |
void |
closeElement()
Set the state of the current element (the value returned by getId) to CLOSED. |
void |
closeElement(String key)
Set the state of the specified element to CLOSED. |
void |
displayStateMap()
Debugging utility |
void |
exposeElement(String xpath)
Opens the element at the given xpath, as well as each ancestor element. |
String |
getDisplayState()
Gets the displayState of the default element |
String |
getDisplayState(String key)
Gets the displayState attribute of the specified element |
String |
getId()
Gets the id of the default element. |
boolean |
getIsOpen()
Gets the isOpen attribute of the default element |
Map |
getStateMap()
Gets the stateMap attribute of the CollapseBean object |
void |
openElement()
Opens the default element |
void |
openElement(String key)
Opens the specified element |
protected void |
prtln(String s)
Description of the Method |
void |
setDefaultState(String state)
Sets the defaultState attribute of the CollapseBean object |
void |
setDisplayState(String state)
Sets the displayState attribute of the default element of the CollapseBean object |
void |
setDisplayState(String key,
String state)
Sets the displayState for a document node corresponding to the given key. |
void |
setId(String id)
Sets the id attribute which represets the *default element* to be operated upon when a "key" is not specified. |
void |
update(HttpServletRequest request)
Find the request parameters that specify displayStates for the content boxes of the metadataEditor's instance document, and update the collapseBean so it reflects the displayStates specified by the request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String OPEN
public static String CLOSED
public static String DEFAULT_STATE
Constructor Detail |
---|
public CollapseBean()
Method Detail |
---|
public void clear()
public void closeElement()
public void closeElement(String key)
key
- String designating an element in the instance documentpublic void setId(String id)
For example:
id
- The new id valuepublic String getId()
public void setDefaultState(String state)
state
- The new defaultState valuepublic void exposeElement(String xpath)
xpath
- NOT YET DOCUMENTEDpublic Map getStateMap()
public void setDisplayState(String key, String state)
org.dlese.dpc.schemedit.SchemEditUtils#pathToId(String)
)
key
- An encoded xpathstate
- The new displayState valuepublic void setDisplayState(String state)
state
- The new displayState valuepublic boolean getIsOpen()
public String getDisplayState()
public String getDisplayState(String key)
key
- Description of the Parameter
public void openElement()
public void openElement(String key)
key
- an identifier for the element to openpublic void displayStateMap()
public void update(HttpServletRequest request)
request
- Description of the Parameterprotected final void prtln(String s)
s
- Description of the Parameter
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |