public class FixedTabFactory extends AbstractJspActionFactory<TabAction> implements TabAction
If the extension point supports scripts and stylesheets, use the
AbstractJspFactory.setScript(String)
and AbstractJspFactory.setStylesheet(String)
methods.
Each call to these methods will add the argument to a set. Use
the AbstractJspFactory.getScripts()
and AbstractJspFactory.getStylesheets()
methods to gain
access to the sets, for example, to remove added items.
Modifier and Type | Field and Description |
---|---|
private TabAction[] |
actions |
private String |
clazz |
private String |
content |
private String |
helpId |
private String |
id |
private String |
style |
private int |
tabIndex |
private String |
title |
private String |
tooltip |
private boolean |
visible |
Constructor and Description |
---|
FixedTabFactory()
Create a new factory instance.
|
Modifier and Type | Method and Description |
---|---|
TabAction[] |
getActions(InvokationContext<? super TabAction> context)
This method may be called one or several times for each request.
|
String |
getClazz()
Class attribute of the main tab tag.
|
String |
getContent()
Get the (HTML) contents of the tab.
|
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 |
getId()
ID attribute of the main tab tag.
|
String |
getStyle()
Extra CSS style attributes that will be added to the
style attribute of the main tab tag. |
int |
getTabIndex()
Get the tab index used to control focus order when tabbing.
|
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 |
setClazz(String clazz) |
void |
setContent(String content) |
void |
setHelpId(String helpId) |
void |
setId(String id) |
void |
setStyle(String style) |
void |
setTabIndex(String tabIndex) |
void |
setTitle(String title) |
void |
setTooltip(String tooltip) |
void |
setVisible(boolean visible) |
void |
setVisible(String visible) |
prepareContext
getDynamicActionAttributes, getParameter, getScripts, getStylesheets, prepareContext, setParameter, setScript, setStylesheet
private TabAction[] actions
private String id
private String clazz
private String style
private String title
private String tooltip
private String helpId
private boolean visible
private String content
private int tabIndex
public TabAction[] getActions(InvokationContext<? super TabAction> context)
ActionFactory
getActions
in interface ActionFactory<TabAction>
context
- The current invokation contextpublic String getId()
TabAction
public String getClazz()
TabAction
public String getStyle()
TabAction
style
attribute of the main tab tag.public String getTitle()
TabAction
public String getTooltip()
TabAction
getTooltip
in interface TabAction
public boolean isVisible()
TabAction
public String getHelpId()
TabAction
Help.getExternalId()
.public String getContent()
TabAction
getContent
in interface TabAction
public int getTabIndex()
TabAction
getTabIndex
in interface TabAction
public void setId(String id)
public void setClazz(String clazz)
public void setStyle(String style)
public void setTitle(String title)
public void setTooltip(String tooltip)
public void setVisible(boolean visible)
public void setVisible(String visible)
public void setHelpId(String helpId)
public void setContent(String content)
public void setTabIndex(String tabIndex)