public class CollapseBean
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOSED
Description of the Field
|
static java.lang.String |
DEFAULT_STATE
Description of the Field
|
static java.lang.String |
OPEN
Description of the Field
|
Constructor and Description |
---|
CollapseBean()
Constructor for the CollapseBean object
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.String key)
Set the state of the specified element to CLOSED.
|
void |
displayStateMap()
Debugging utility
|
void |
exposeElement(java.lang.String xpath)
Opens the element at the given xpath, as well as each ancestor element.
|
java.lang.String |
getDisplayState()
Gets the displayState of the default element
|
java.lang.String |
getDisplayState(java.lang.String key)
Gets the displayState attribute of the specified element
|
java.lang.String |
getId()
Gets the id of the default element.
|
boolean |
getIsOpen()
Gets the isOpen attribute of the default element
|
java.util.Map |
getStateMap()
Gets the stateMap attribute of the CollapseBean object
|
void |
openElement()
Opens the default element
|
void |
openElement(java.lang.String key)
Opens the specified element
|
protected void |
prtln(java.lang.String s)
Description of the Method
|
void |
setDefaultState(java.lang.String state)
Sets the defaultState attribute of the CollapseBean object
|
void |
setDisplayState(java.lang.String state)
Sets the displayState attribute of the default element of the CollapseBean
object
|
void |
setDisplayState(java.lang.String key,
java.lang.String state)
Sets the displayState for a document node corresponding to the given key.
|
void |
setId(java.lang.String id)
Sets the id attribute which represets the *default element* to be operated
upon when a "key" is not specified.
|
void |
update(javax.servlet.http.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.
|
public static java.lang.String OPEN
public static java.lang.String CLOSED
public static java.lang.String DEFAULT_STATE
public void clear()
public void closeElement()
public void closeElement(java.lang.String key)
key
- String designating an element in the instance documentpublic void setId(java.lang.String id)
For example:
id
- The new id valuepublic java.lang.String getId()
public void setDefaultState(java.lang.String state)
state
- The new defaultState valuepublic void exposeElement(java.lang.String xpath)
xpath
- NOT YET DOCUMENTEDpublic java.util.Map getStateMap()
public void setDisplayState(java.lang.String key, java.lang.String state)
org.dlese.dpc.schemedit.SchemEditUtils#pathToId(String)
)key
- An encoded xpathstate
- The new displayState valuepublic void setDisplayState(java.lang.String state)
state
- The new displayState valuepublic boolean getIsOpen()
public java.lang.String getDisplayState()
public java.lang.String getDisplayState(java.lang.String key)
key
- Description of the Parameterpublic void openElement()
public void openElement(java.lang.String key)
key
- an identifier for the element to openpublic void displayStateMap()
public void update(javax.servlet.http.HttpServletRequest request)
request
- Description of the Parameterprotected final void prtln(java.lang.String s)
s
- Description of the Parameter