Class IncludeContentTabFactory
java.lang.Object
net.sf.basedb.clients.web.extensions.AbstractJspFactory
net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<TabAction>
net.sf.basedb.clients.web.extensions.tabcontrol.IncludeContentTabFactory
- All Implemented Interfaces:
DynamicActionAttributes
,ActionFactory<TabAction>
public class IncludeContentTabFactory extends AbstractJspActionFactory<TabAction>
A tab action factory implementation that includes another resource
as the content of tab. The other resource can be a JSP
script, servlet, a static file, or anything else that makes sense.
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.
- Since:
- 2.17
- Author:
- nicklas
- Last modified
- $Date: 2015-04-20 11:08:18 +0200 (må, 20 apr 2015) $
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
IncludeContentTabFactory.Tab
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IncludeContentTabFactory()
Create a new factory instance. -
Method Summary
Modifier and Type Method Description TabAction[]
getActions(InvokationContext<? super TabAction> context)
This method may be called one or several times for each request.void
setClazz(String clazz)
void
setHelpId(String helpId)
void
setId(String id)
void
setInclude(String include)
void
setStyle(String style)
void
setTabIndex(String tabIndex)
void
setTitle(String title)
void
setTooltip(String tooltip)
void
setVisible(boolean visible)
void
setVisible(String visible)
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspActionFactory
prepareContext
Methods inherited from class net.sf.basedb.clients.web.extensions.AbstractJspFactory
getDynamicActionAttributes, getParameter, getScripts, getStylesheets, prepareContext, setParameter, setScript, setStylesheet
-
Field Details
-
id
-
clazz
-
style
-
title
-
tooltip
-
helpId
-
visible
private boolean visible -
include
-
tabIndex
private int tabIndex
-
-
Constructor Details
-
IncludeContentTabFactory
public IncludeContentTabFactory()Create a new factory instance.
-
-
Method Details
-
getActions
Description copied from interface:ActionFactory
This method may be called one or several times for each request. This is decided by the extension point. If, for example, the extension point is a pure single-item extension point then this method is probably only called once. If the extension point is a per-item extension point in a list context, then this method may be called once for every item in the list. The context parameter contains all information about the context of the extension point, including the current item, if any.- Parameters:
context
- The current invokation context- Returns:
- An array of actions that should be added to the extension point. Returns null or an empty array if there are no actions in the current context.
-
setId
-
setClazz
-
setStyle
-
setTitle
-
setTooltip
-
setVisible
public void setVisible(boolean visible) -
setVisible
-
setHelpId
-
setTabIndex
-
setInclude
-