public class IncludeContentTabFactory extends AbstractJspActionFactory<TabAction>
The current JspContext
is stored as a ServletRequest
attribute
with key JspContext.ATTRIBUTE_KEY
. If the included page is a JSP page it
can get the JspContext by calling
request.getAttribute(JspContext.ATTRIBUTE_KEY)
.
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 | Class and Description |
---|---|
(package private) class |
IncludeContentTabFactory.Tab |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clazz |
private java.lang.String |
helpId |
private java.lang.String |
id |
private java.lang.String |
include |
private java.lang.String |
style |
private int |
tabIndex |
private java.lang.String |
title |
private java.lang.String |
tooltip |
private boolean |
visible |
Constructor and Description |
---|
IncludeContentTabFactory()
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.
|
void |
setClazz(java.lang.String clazz) |
void |
setHelpId(java.lang.String helpId) |
void |
setId(java.lang.String id) |
void |
setInclude(java.lang.String include) |
void |
setStyle(java.lang.String style) |
void |
setTabIndex(java.lang.String tabIndex) |
void |
setTitle(java.lang.String title) |
void |
setTooltip(java.lang.String tooltip) |
void |
setVisible(boolean visible) |
void |
setVisible(java.lang.String visible) |
prepareContext
getDynamicActionAttributes, getParameter, getScripts, getStylesheets, prepareContext, setParameter, setScript, setStylesheet
private java.lang.String id
private java.lang.String clazz
private java.lang.String style
private java.lang.String title
private java.lang.String tooltip
private java.lang.String helpId
private boolean visible
private java.lang.String include
private int tabIndex
public IncludeContentTabFactory()
public TabAction[] getActions(InvokationContext<? super TabAction> context)
ActionFactory
context
- The current invokation contextpublic void setId(java.lang.String id)
public void setClazz(java.lang.String clazz)
public void setStyle(java.lang.String style)
public void setTitle(java.lang.String title)
public void setTooltip(java.lang.String tooltip)
public void setVisible(boolean visible)
public void setVisible(java.lang.String visible)
public void setHelpId(java.lang.String helpId)
public void setTabIndex(java.lang.String tabIndex)
@PathSetter(pathType=CONTEXT_RELATIVE) public void setInclude(java.lang.String include)