org.apache.beehive.netui.tags.divpanel
Class DivPanel
Object
TagSupport
BodyTagSupport
AbstractClassicTag
DivPanel
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag, INetuiTag
public class DivPanel
- extends AbstractClassicTag
A DivPanel creates an HTML <div> tag that may contain additional <div> tags. There will only
be a single div that is visible at a time.
- See Also:
- Serialized Form
Fields inherited from class BodyTagSupport |
bodyContent |
Fields inherited from class TagSupport |
id, pageContext |
Fields inherited from interface BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
int |
doEndTag()
Stores the buffered body content into the TEMPLATE_SECTIONS
HashMap . |
int |
doStartTag()
Causes the content of the section to be rendered into a buffer. |
static String |
getCurrentPage(ServletRequest req,
String tagId)
|
protected DivPanelState |
getState(ExpressionHandling expr)
|
String |
getTagName()
Returns the name of the Tag. |
protected void |
localRelease()
This is a method that will reinitialize all temporary state on a
tag and should be called in the doEndTag method. |
void |
setDataSource(String dataSource)
Sets an expression which indentifies the DivPanelState which will store the state of the
DivPanel between posts to the server. |
void |
setFirstPage(String firstPage)
Set the name of the first page to display. |
void |
setTagId(String tagId)
Set the ID of the tag. |
Methods inherited from class AbstractClassicTag |
applyNamingChain, getErrorsReport, getIdForTagId, getNamingChain, getNearestForm, getNextId, getScriptReporter, getUserLocale, hasErrors, qualifyAttribute, registerTagError, registerTagError, reportAndExit, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write |
Methods inherited from class BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Tag |
getParent, setPageContext, setParent |
DIVPANEL_JAVASCRIPT_ATTR
public static final String DIVPANEL_JAVASCRIPT_ATTR
- See Also:
- Constant Field Values
DIVPANEL_FIRST_PAGE
public static final String DIVPANEL_FIRST_PAGE
- See Also:
- Constant Field Values
DIVPANEL_DIV_ID
public static final String DIVPANEL_DIV_ID
- See Also:
- Constant Field Values
DivPanel
public DivPanel()
getCurrentPage
public static String getCurrentPage(ServletRequest req,
String tagId)
getTagName
public String getTagName()
- Returns the name of the Tag. This is used to
identify the type of tag reporting errors.
- Specified by:
getTagName
in interface INetuiTag
- Specified by:
getTagName
in class AbstractClassicTag
- Returns:
- a constant string representing the name of the tag.
setDataSource
public void setDataSource(String dataSource)
- Sets an expression which indentifies the DivPanelState which will store the state of the
DivPanel between posts to the server.
- Parameters:
dataSource
- the tree attribute name
setTagId
public void setTagId(String tagId)
- Set the ID of the tag.
- Parameters:
tagId
- the tagId.
setFirstPage
public void setFirstPage(String firstPage)
- Set the name of the first page to display.
- Parameters:
firstPage
- the name of the first page.
doStartTag
public int doStartTag()
throws JspException
- Causes the content of the section to be rendered into a buffer.
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Returns:
- SKIP_BODY if the visible state is
false
,
otherwise EVAL_BODY_BUFFERED to cause the body content to be buffered.
- Throws:
JspException
- if there are errors.
doEndTag
public int doEndTag()
throws JspException
- Stores the buffered body content into the
TEMPLATE_SECTIONS
HashMap
. The buffered body is
accessed by the template page to obtain
the content for IncludeSection
tags.
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class BodyTagSupport
- Returns:
- EVAL_PAGE to continue evaluating the page.
- Throws:
JspException
- on error.
localRelease
protected void localRelease()
- Description copied from class:
AbstractClassicTag
- This is a method that will reinitialize all temporary state on a
tag and should be called in the doEndTag method.
- Overrides:
localRelease
in class AbstractClassicTag
getState
protected DivPanelState getState(ExpressionHandling expr)
throws JspException
- Throws:
JspException