|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.BaseExpandCollapse
public abstract class BaseExpandCollapse
The BaseExpandCollapse is an abstract TransformationBean for creating an ExpandCollapse area. By default, this class contains a title area containing text and buttons used for expanding or collaping the content area. The content area is written inside of an HTML div tag, which can be expanded or collapsed.
Note that subclasses of this bean actually provide the markup rendering used in/with Servlet and JavaServer Pages technologies. If you need to add support for a markup language that is not explicitly provided with AppDev Studio, then you must extend this class.
For More Information:
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:ExpandCollapse custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary | |
---|---|
protected java.lang.String |
content
|
protected BaseTransformation |
contentBean
|
protected java.lang.String |
imageLocation
|
static int |
SAVE_STATE_NONE
Save state variable for ignoring (not saving) state. |
static int |
SAVE_STATE_SESSION
Save state variable for saving state via the session. |
Fields inherited from interface com.sas.servlet.tbeans.ExpandCollapseKeysInterface |
---|
COL_BUTTON, CONTENT, DIV_ID, EXP_BUTTON, EXPCOL_BUTTON, REMOVE_BUTTON, TITLE_LABEL |
Constructor Summary | |
---|---|
BaseExpandCollapse()
Default Constructor |
Method Summary | |
---|---|
void |
cleanUpResources()
This method releases all of the necessary resources that were needed by the transformation bean to render itself. |
java.lang.String |
getCollapseImageDefault()
Gets the collapse default image String for the collapse button. |
java.lang.String |
getCollapseImageDisabled()
Gets the collapse disable image String for the collapse button. |
java.lang.String |
getContent()
Get the content to be placed inside the div tag of this component. |
BaseTransformation |
getContentBean()
Get the content to be placed inside the div tag of this component. |
java.lang.String |
getExpandImageDefault()
Gets the expand default image String for the expand button. |
java.lang.String |
getExpandImageDisabled()
Gets the expand disable image String for the expand button. |
java.lang.String |
getImageLocation()
Returns the image location used for the button images. |
java.lang.String |
getRemoveImageDefault()
Gets the remove default image String for the remove button. |
int |
getSaveState()
Returns whether the component's state is to be saved. |
java.lang.String |
getTitle()
Convenience method to get the text set on the title Label. |
boolean |
isExpanded()
Returns whether the component is expanded. |
boolean |
isRemoveButtonVisible()
Returns whether or not the remove button is visible. |
boolean |
isSingleButton()
Returns whether or not the expand/collapse button is visible as a single button. |
void |
setCollapseImageDefault(java.lang.String image)
Sets the collapse default image String for the collapse button. |
void |
setCollapseImageDisabled(java.lang.String image)
Sets the collapse disable image String for the collapse button. |
void |
setContent(BaseTransformation tbean)
Set the content to be placed inside the div tag of this component. |
void |
setContent(java.lang.String content)
Set the content to be placed inside the div tag of this component. |
void |
setContentBean(BaseTransformation contentBean)
Get the content to be placed inside the div tag of this component. |
void |
setExpanded(boolean value)
Sets whether the component is expanded. |
void |
setExpandImageDefault(java.lang.String image)
Sets the expand default image String for the expand button. |
void |
setExpandImageDisabled(java.lang.String image)
Sets the expand disable image String for the expand button. |
void |
setImageLocation(java.lang.String location)
For example, setImageLocation("assets/"). |
void |
setRemoveButtonVisible(boolean value)
Determines whether or not the remove button will be visible. |
void |
setRemoveImageDefault(java.lang.String image)
Sets the remove default image String for the remove button. |
void |
setSaveState(int saveState)
Sets whether the component is to save the expanded state to the session. |
void |
setSingleButton(boolean value)
When this member is set to true, the expand/collapse button will be visible as a single button which changes or toggles the image on the click. |
void |
setTitle(java.lang.String title)
Convenience method to set the text on the title Label. |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getRequest |
Field Detail |
---|
protected java.lang.String content
protected java.lang.String imageLocation
protected BaseTransformation contentBean
public static final int SAVE_STATE_NONE
public static final int SAVE_STATE_SESSION
Constructor Detail |
---|
public BaseExpandCollapse()
Method Detail |
---|
public void setRemoveImageDefault(java.lang.String image)
image
- The default image.public java.lang.String getRemoveImageDefault()
public void setExpandImageDefault(java.lang.String image)
image
- The default image.public java.lang.String getExpandImageDefault()
public void setExpandImageDisabled(java.lang.String image)
image
- The disable image.public java.lang.String getExpandImageDisabled()
public void setCollapseImageDefault(java.lang.String image)
image
- The default image.public java.lang.String getCollapseImageDefault()
public void setCollapseImageDisabled(java.lang.String image)
image
- The disable image.public java.lang.String getCollapseImageDisabled()
public void setExpanded(boolean value)
value
- True if the component is expanded, false if collapsedpublic boolean isExpanded()
public void setTitle(java.lang.String title)
title
- The title String to be used as in the title Label when the write occurs.public java.lang.String getTitle()
public void setSingleButton(boolean value)
value
- true if single button is visible, false if two are visiblepublic boolean isSingleButton()
public void setRemoveButtonVisible(boolean value)
value
- true if button is visible, false otherwisepublic boolean isRemoveButtonVisible()
public void setContent(java.lang.String content)
content
- The String content to be set on this component.public void setContent(BaseTransformation tbean)
tbean
- The Transformation bean used as the content.public java.lang.String getContent()
public void setContentBean(BaseTransformation contentBean)
public BaseTransformation getContentBean()
public void setImageLocation(java.lang.String location)
location
- the location of the default imagespublic java.lang.String getImageLocation()
public void setSaveState(int saveState)
value
- Set to SAVE_STATE_NONE or SAVE_STATE_SESSION.public int getSaveState()
public void cleanUpResources()
request
and response
. This method
calls the setRequest and setResponse methods with a null value.
cleanUpResources
in class BaseTransformation
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |