|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.html.ExpandCollapse
public class ExpandCollapse
The ExpandCollapse is a TransformationBean used to expand and collapse content within an HTML div tag. By default, this class contains a title area containing text and buttons used for expand or collaping the content area. The content area is written inside of an html div tag, which can be expanded or collapsed.
The ExpandCollapse is one of several TransformationBeans that rely on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to this TransformationBean, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans as well as the TransformationBeans Style Sheet Reference.
The ExpandCollapse is one of several TransformationBeans that rely on JavaScript to provide some of its functionality. These JavaScript files are including automatically by the tbean. See JavaScriptIncludeHandler for more information about how these files are included and how to customize this behavior. The ExpandCollapse uses the following JavaScript files:
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
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 | |
---|---|
static java.lang.String |
EXPANDED_MAP
String map name used to store state on the session. |
Fields inherited from class com.sas.servlet.tbeans.BaseExpandCollapse |
---|
content, contentBean, imageLocation, SAVE_STATE_NONE, SAVE_STATE_SESSION |
Fields inherited from interface com.sas.servlet.tbeans.html.ExpandCollapseStyleKeysInterface |
---|
BUTTONS_STYLE, BUTTONS_TABLE_STYLE, CONTAINER_STYLE, DIV_STYLE, SEPARATOR_STYLE, TITLE_STYLE |
Fields inherited from interface com.sas.servlet.tbeans.ExpandCollapseKeysInterface |
---|
COL_BUTTON, CONTENT, DIV_ID, EXP_BUTTON, EXPCOL_BUTTON, REMOVE_BUTTON, TITLE_LABEL |
Constructor Summary | |
---|---|
ExpandCollapse()
Default Constructor. |
|
ExpandCollapse(java.lang.String name)
Constructor |
Method Summary | |
---|---|
void |
cleanUpResources()
This method releases all of the necessary resources that were needed by the transformation bean to render itself. |
int |
getAutoWidth()
|
java.lang.String |
getPostExpandCollapse()
|
java.lang.String |
getPreExpandCollapse()
|
java.util.Map |
getStyleMap()
Returns the component styles used for this component |
static void |
servletInvocationMethod(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method called by the MethodInvocationServlet to save the state of the component. |
void |
setAutoWidth(int value)
|
void |
setPostExpandCollapse(java.lang.String postExpandCollapse)
|
void |
setPreExpandCollapse(java.lang.String preExpandCollapse)
|
void |
write(java.io.PrintWriter out)
Writes the transformed representation of the selector |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getRequest |
Field Detail |
---|
public static final java.lang.String EXPANDED_MAP
Constructor Detail |
---|
public ExpandCollapse()
public ExpandCollapse(java.lang.String name)
name
- The name String set on this component using setName().Method Detail |
---|
public static void servletInvocationMethod(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- The HttpServletRequest from the servletresponse
- The HttpServletResponse from the servletpublic java.util.Map getStyleMap()
getStyleMap
in interface ComplexStyleInterface
getStyleMap
in class BaseCompositeTransformation
public void cleanUpResources()
request
and response
. This method
calls the setRequest and setResponse methods with a null value.
cleanUpResources
in class BaseExpandCollapse
public void write(java.io.PrintWriter out) throws java.io.IOException
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseCompositeTransformation
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void setAutoWidth(int value)
public int getAutoWidth()
public java.lang.String getPostExpandCollapse()
public void setPostExpandCollapse(java.lang.String postExpandCollapse)
postExpandCollapse
- The postExpandCollapse to set.public java.lang.String getPreExpandCollapse()
public void setPreExpandCollapse(java.lang.String preExpandCollapse)
preExpandCollapse
- The preExpandCollapse to set.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |