|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.sf.basedb.clients.web.taglib.tab.Tab
public class Tab
This tag defines the title and contents of a single tab inside a tab control.
Syntax:
<t:tab
id=...
clazz=...
style=...
title=...
tooltip=...
validate=...
activate=...
visible=true|false
helpid=...
>
| Attribute | Default value | Required | Description |
| id | tabcontrol1 | yes | The ID of the tab. The value of this attribute
goes directly into the standard HTML id attribute.
This means that if you need a reference to the tab object in your own
JavaScript code, you may for example use the following code:
|
| clazz | button | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different tables.
|
| style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different notes.
|
| title | - | yes | The title of the tab. |
| tooltip | - | no | An optional tooltip that is shown as a popup text while the user is pointing the mouse over the tab's title. Not supported by all browsers. |
| validate | - | no | An optional JavaScript expression that will be evaluated when the users tries to switch from this tab to another. If the expression returns FALSE the switch will not be made. You may, for example, use this attribute to validate input data in a form. |
| activate | - | no | An optional JavaScript expression that will be executed when the switches to this tab. |
| visible | true | no | If this tab should be visible or not. |
| helpid | no | Optional ID for the help text associated with this tab. See the
Help taglib
for more information.
|
TabControl,
Serialized Form| Field Summary | |
|---|---|
private String |
activate
A JavaScript method that is invoked when activating the tab. |
private String |
clazz
Optional class attribute. |
private String |
helpid
The help ID for this tab. |
private static long |
serialVersionUID
|
private String |
style
Optional style attribute |
private TabControl |
tc
The parent TabControl object. |
private String |
title
The title of the tab. |
private String |
tooltip
A popup tooltip text. |
private String |
validate
A JavaScript method that validates the tab content. |
private boolean |
visible
If the tab should be visible or not. |
| 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 | |
|---|---|
Tab()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getClazz()
Class attribute of the main tab tag. |
String |
getContent()
Get the (HTML) contents of the tab. |
String |
getHelpid()
|
String |
getHelpId()
The external id of a help text that the user can display to get more information about how to use the information in this tab. |
String |
getOnActivate()
A javascript action that is executed when activating the tab. |
String |
getOnValidate()
A javascript action that is executed when validating form data on the tab. |
String |
getStyle()
Extra CSS style attributes that will be added to the style attribute of the main tab tag. |
String |
getTitle()
Get the title of the tab. |
String |
getTooltip()
A tooltip that is shown as a yellow popup when the user points the mouse at the tab. |
boolean |
isVisible()
If the tab should be visible or not. |
void |
setActivate(String activate)
|
void |
setClazz(String clazz)
|
void |
setHelpid(String helpid)
|
void |
setStyle(String style)
|
void |
setTitle(String title)
|
void |
setTooltip(String tooltip)
|
void |
setValidate(String validate)
|
void |
setVisible(boolean visible)
|
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, 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 net.sf.basedb.clients.web.extensions.tabcontrol.TabAction |
|---|
getId |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setPageContext, setParent |
| Field Detail |
|---|
private static final long serialVersionUID
private TabControl tc
private String clazz
class attribute.
private String style
style attribute
private String title
private String tooltip
private String validate
private String activate
private boolean visible
private String helpid
| Constructor Detail |
|---|
public Tab()
| Method Detail |
|---|
public void setClazz(String clazz)
public String getClazz()
TabAction
getClazz in interface TabActionpublic void setStyle(String style)
public String getStyle()
TabActionstyle attribute of the main tab tag.
getStyle in interface TabActionpublic void setTitle(String title)
public String getTitle()
TabAction
getTitle in interface TabActionpublic void setTooltip(String tooltip)
public String getTooltip()
TabAction
getTooltip in interface TabActionpublic void setValidate(String validate)
public String getOnValidate()
TabAction
getOnValidate in interface TabActionpublic void setActivate(String activate)
public String getOnActivate()
TabAction
getOnActivate in interface TabActionpublic void setVisible(boolean visible)
public boolean isVisible()
TabAction
isVisible in interface TabActionpublic void setHelpid(String helpid)
public String getHelpid()
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class BodyTagSupportJspException
public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class BodyTagSupportJspExceptionpublic String getHelpId()
TabActionHelp.getExternalId().
getHelpId in interface TabActionpublic String getContent()
TabAction
getContent in interface TabAction
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||