com.arsdigita.bebop.jsp
Class DefineTab
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.arsdigita.bebop.jsp.DefineComponent
com.arsdigita.bebop.jsp.DefineContainer
com.arsdigita.bebop.jsp.DefineTab
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, Serializable, javax.servlet.jsp.tagext.Tag
- public class DefineTab
- extends DefineContainer
Class for defining a single component tab within a define:tabbedPane
JSP tag. This is an odd tag becuase it doesn't really define a
real Bebop container; rather it's a "virtual" container that exists only
inside the tag handler class as a way of associating a label with
the tag. The define:tab tag is a special case because we have to
call addTab(String label, Component) to add tabs to the
tabbed pane, not justadd(Component).
- See Also:
- Serialized Form
| 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 |
|
Method Summary |
void |
addComponent(Component c)
overrides the default container method. |
int |
doEndTag()
At the close of the tag, add the component within this
tag to the tabbed pane with the specified label. |
int |
doStartTag()
doStartTag() is a special case that does nothing. |
protected Component |
getComponent()
|
void |
setLabel(String l)
sets the label for the tab contained within this tag. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, 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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
DefineTab
public DefineTab()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- doStartTag() is a special case that does nothing.
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class DefineComponent
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- At the close of the tag, add the component within this
tag to the tabbed pane with the specified label.
- Throws:
javax.servlet.jsp.JspException
addComponent
public final void addComponent(Component c)
- overrides the default container method. This tag is a placeholder,
so we just keep track of what the "real" component contained within
this tab is so we can add it to the tabbed pane later on.
- Overrides:
addComponent in class DefineContainer
getComponent
protected final Component getComponent()
- Specified by:
getComponent in class DefineComponent
setLabel
public final void setLabel(String l)
- sets the label for the tab contained within this tag.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2337 UTC