|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
nl.imsystems.atag.tags.ATagBase
nl.imsystems.atag.tags.ContainerBase
public class ContainerBase
Base class for container tags.
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
ContainerBase()
|
Method Summary | |
---|---|
protected void |
addAction(ActionTag action)
Adds an action by reading the values on an action tag. |
protected void |
addDependent(String dependent)
Adds a single dependent to the list of dependents. |
protected void |
addParam(ParamTag param)
Adds a param by reading the values from the tag. |
protected void |
addReference(ReferenceBase reference)
Empty implementation. |
protected static String |
compileActions(Map actions)
Creates a String that contains all event handler attributes for this component. |
int |
doStartTag()
Default implementation that returns EVAL_BODY_BUFFERED. |
protected Map |
getActions()
Retuens a Map of ActionData
instances mapped against the action type. |
protected List |
getActions(String event)
Returns all actions registered for the given event type. |
String |
getContollerUrl()
Returns controller url attribute. |
protected Set |
getDependentsList()
Returns a Set of component ids (String) that should be refreshed when this component fires an event. |
protected Map |
getParams()
Retuens a Map of parameter values mapped against their name. |
protected String |
getParamsCSV()
Returns a semicolon ';' separated list of name/values, separated by and equals '=' sign. |
String |
getViewUrl()
Returns the viewUrl attribute. |
protected boolean |
isParentDependent()
Returns true if the parent of this tag is in its dependents list. |
void |
release()
Resets the Tag handler. |
void |
setControllerUrl(String url)
Sets the controllerUrl attribute. |
protected void |
setDependents(String csv)
Sets the dependent given a comma separated list of relative or absolute ids. |
void |
setViewUrl(String viewUrl)
Sets the viewUrl attribute. |
Methods inherited from class nl.imsystems.atag.tags.ATagBase |
---|
getAlias, getATagContext, getContextPath, getNamingContext, getParentTag, getRefererId, getRequest, getResponse, getTagId, popContext, pushContext, resolveRelativeName |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public ContainerBase()
Method Detail |
---|
public String getContollerUrl()
public void setControllerUrl(String url)
url
- The url to set. Values starting with a
forward slash '/' will be resolved to app root.public String getViewUrl()
public void setViewUrl(String viewUrl)
viewUrl
- The viewUrl value.protected void addReference(ReferenceBase reference) throws JspException
reference
-
JspException
protected void addDependent(String dependent)
dependent
- The dependent to add.protected boolean isParentDependent()
protected void setDependents(String csv)
csv
- The comma separated list of dependents.protected List getActions(String event)
event
- The event type ('change', 'click', etc.)
ActionData
instances.protected void addAction(ActionTag action) throws JspException
action
- The action to read.
JspException
- If the action is added
to a tag that does not support it.protected String getParamsCSV()
protected void addParam(ParamTag param)
param
- The tag to read.protected Set getDependentsList()
protected Map getActions()
ActionData
instances mapped against the action type.
ActionData
instances mapped against the action type.protected Map getParams()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
public void release()
release
in interface Tag
release
in class BodyTagSupport
protected static String compileActions(Map actions)
actions
- Map of ActionData
instances mapped against the action type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |