|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.clients.web.extensions.AbstractJspFactory
net.sf.basedb.clients.web.extensions.AbstractJspActionFactory<TabAction>
net.sf.basedb.clients.web.extensions.tabcontrol.FixedTabFactory
public class FixedTabFactory
A simple implementation of a tab action factory that creates the same fixed tab for all users not using any context information.
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.
| Field Summary | |
|---|---|
private TabAction[] |
actions
|
private String |
clazz
|
private String |
content
|
private String |
helpId
|
private String |
id
|
private String |
onActivate
|
private String |
onValidate
|
private String |
style
|
private String |
title
|
private String |
tooltip
|
private boolean |
visible
|
| Constructor Summary | |
|---|---|
FixedTabFactory()
Create a new factory instance. |
|
| Method Summary | |
|---|---|
TabAction[] |
getActions(InvokationContext 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 |
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 |
setClazz(String clazz)
|
void |
setContent(String content)
|
void |
setHelpId(String helpId)
|
void |
setId(String id)
|
void |
setOnActivate(String onActivate)
|
void |
setOnValidate(String onValidate)
|
void |
setStyle(String style)
|
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 |
|---|
getScripts, getStylesheets, prepareContext, setScript, setStylesheet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 onValidate
private String onActivate
private String content
| Constructor Detail |
|---|
public FixedTabFactory()
| Method Detail |
|---|
public TabAction[] getActions(InvokationContext context)
ActionFactory
getActions in interface ActionFactory<TabAction>context - The current invokation context
public String getId()
TabAction
getId in interface TabActionpublic String getClazz()
TabAction
getClazz in interface TabActionpublic String getStyle()
TabActionstyle attribute of the main tab tag.
getStyle in interface TabActionpublic String getTitle()
TabAction
getTitle in interface TabActionpublic String getTooltip()
TabAction
getTooltip in interface TabActionpublic boolean isVisible()
TabAction
isVisible in interface TabActionpublic String getHelpId()
TabActionHelp.getExternalId().
getHelpId in interface TabActionpublic String getOnValidate()
TabAction
getOnValidate in interface TabActionpublic String getOnActivate()
TabAction
getOnActivate in interface TabActionpublic String getContent()
TabAction
getContent in interface TabActionpublic 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)
@VariableSetter public void setOnValidate(String onValidate)
@VariableSetter public void setOnActivate(String onActivate)
public void setContent(String content)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||