public class Tab extends BodyTagSupport implements TabAction, DynamicAttributes, DynamicActionAttributes
Syntax:
<t:tab id=... clazz=... style=... title=... tooltip=... validate=... activate=... visible=true|false helpid=... tabindex=... >
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 | Deprecated. Use javascript and call TabControl.addTabValidator() to attach a validation function instead. 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 | Deprecated. Use javascript and call TabControl.addTabActivator() to attach a validation function instead. 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.
|
|
tabindex | 0 | no | Tab index value to control the focus order. Use -1 to disable tabbing. |
TabControl
,
Serialized FormModifier and Type | Field and Description |
---|---|
private java.lang.String |
activate
Deprecated.
|
private java.lang.String |
clazz
Optional
class attribute. |
private java.util.Map<java.lang.String,DynamicActionAttribute> |
dynamicAttributes |
private java.lang.String |
helpid
The help ID for this tab.
|
private static long |
serialVersionUID |
private java.lang.String |
style
Optional
style attribute |
private int |
tabIndex |
private TabControl |
tc
The parent TabControl object.
|
private java.lang.String |
title
The title of the tab.
|
private java.lang.String |
tooltip
A popup tooltip text.
|
private java.lang.String |
validate
Deprecated.
|
private boolean |
visible
If the tab should be visible or not.
|
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Tab() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getClazz()
Class attribute of the main tab tag.
|
java.lang.String |
getContent()
Get the (HTML) contents of the tab.
|
java.util.Iterator<DynamicActionAttribute> |
getDynamicActionAttributes()
Get an iterator that return all dynamic attributes.
|
java.lang.String |
getHelpid() |
java.lang.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.
|
java.lang.String |
getOnActivate()
Deprecated.
|
java.lang.String |
getOnValidate()
Deprecated.
|
java.lang.String |
getStyle()
Extra CSS style attributes that will be added to the
style attribute of the main tab tag. |
int |
getTabindex() |
int |
getTabIndex()
Get the tab index used to control focus order when tabbing.
|
java.lang.String |
getTitle()
Get the title of the tab.
|
java.lang.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(java.lang.String activate)
Deprecated.
|
void |
setClazz(java.lang.String clazz) |
void |
setDynamicAttribute(java.lang.String uri,
java.lang.String name,
java.lang.Object value) |
void |
setHelpid(java.lang.String helpid) |
void |
setStyle(java.lang.String style) |
void |
setTabindex(int tabIndex) |
void |
setTitle(java.lang.String title) |
void |
setTooltip(java.lang.String tooltip) |
void |
setValidate(java.lang.String validate)
Deprecated.
|
void |
setVisible(boolean visible) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
private static final long serialVersionUID
private TabControl tc
private java.util.Map<java.lang.String,DynamicActionAttribute> dynamicAttributes
private java.lang.String clazz
class
attribute.private java.lang.String style
style
attributeprivate java.lang.String title
private java.lang.String tooltip
@Deprecated private java.lang.String validate
@Deprecated private java.lang.String activate
private boolean visible
private java.lang.String helpid
private int tabIndex
public void setClazz(java.lang.String clazz)
public java.lang.String getClazz()
TabAction
public void setStyle(java.lang.String style)
public java.lang.String getStyle()
TabAction
style
attribute of the main tab tag.public void setTitle(java.lang.String title)
public java.lang.String getTitle()
TabAction
public void setTooltip(java.lang.String tooltip)
public java.lang.String getTooltip()
TabAction
getTooltip
in interface TabAction
@Deprecated public void setValidate(java.lang.String validate)
@Deprecated public java.lang.String getOnValidate()
TabAction
getOnValidate
in interface TabAction
@Deprecated public void setActivate(java.lang.String activate)
@Deprecated public java.lang.String getOnActivate()
TabAction
getOnActivate
in interface TabAction
public void setVisible(boolean visible)
public boolean isVisible()
TabAction
public void setHelpid(java.lang.String helpid)
public java.lang.String getHelpid()
public void setTabindex(int tabIndex)
public int getTabindex()
public void setDynamicAttribute(java.lang.String uri, java.lang.String name, java.lang.Object value) throws JspException
setDynamicAttribute
in interface DynamicAttributes
JspException
public java.util.Iterator<DynamicActionAttribute> getDynamicActionAttributes()
DynamicActionAttributes
getDynamicActionAttributes
in interface DynamicActionAttributes
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
public java.lang.String getHelpId()
TabAction
Help.getExternalId()
.public int getTabIndex()
TabAction
getTabIndex
in interface TabAction
public java.lang.String getContent()
TabAction
getContent
in interface TabAction