|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.springmvc.panel.PanelTab
public class PanelTab
Properties for a tab in a tabset on a panel.
| Constructor Summary | |
|---|---|
PanelTab(PanelTabset parentTabset,
java.lang.String tabId,
java.lang.String titleKey,
java.lang.String titleImage,
PanelTabFBO tabPanelViewCommand,
DelegatedController controller)
Constructor for a PanelTab with sets the PanelViewCommand and title of the tab. |
|
| Method Summary | |
|---|---|
PanelTab |
addSubTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String viewFileName,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
Adds a subtab to this tab. |
PanelTab |
addSubTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String titleImage,
java.lang.String viewFileName,
DelegatedController controller,
java.lang.String presentationName,
javax.servlet.http.HttpServletRequest request)
Adds a subtab to this tab. |
boolean |
checkAccess()
Returns true if the current user has access to this tab. |
DelegatedController |
getController()
Returns the controller for this panel tab |
PanelTabFBO |
getPanelViewCommand()
Returns the PanelViewCommand exposed by the tab. |
PanelTabset |
getParentTabset()
|
java.lang.String |
getRequiredPermission()
Returns the value of the permission required to use this tab. |
PanelTabset |
getSubTabset()
returns the tabset holding the subtabs for this tab. |
java.lang.String |
getTabId()
Returns the unique ID of the tab (within this tabset). |
java.lang.String |
getTitle()
Returns the title of the tab, independent of locale |
java.lang.String |
getTitleImage()
Returns the titleImage of the tab. |
java.lang.String |
getTitleKey()
Returns the title of the tab. |
boolean |
isShowAllways()
Returns true if the tab may be shown disabled when its not available for usage. |
void |
setController(DelegatedController controller)
Sets the controller for this panel tab |
void |
setParentTabset(PanelTabset parentTabset)
|
void |
setRequiredPermission(java.lang.String permission)
Sets the permission that is required to use this tab. |
void |
setRequiredPermission(java.lang.String permission,
boolean showAllways)
Sets the permission that is required to use this tab. |
void |
setSubTabset(PanelTabset panelTabset)
sets the tabset holding the subtabs for this tab. |
void |
setTitle(java.lang.String title)
Sets the title of the tab, independent of locale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PanelTab(PanelTabset parentTabset,
java.lang.String tabId,
java.lang.String titleKey,
java.lang.String titleImage,
PanelTabFBO tabPanelViewCommand,
DelegatedController controller)
tabId - unique ID of thei tabtitleKey - Title of the tab, not shown if nulltitleImage - TitleImage of the tab, not shown if nulltabPanelViewCommand - PanelViewCommand object the tab exposes| Method Detail |
|---|
public java.lang.String getTitleKey()
public void setTitle(java.lang.String title)
title - Title of the tabpublic java.lang.String getTitle()
public java.lang.String getTitleImage()
public PanelTabFBO getPanelViewCommand()
public DelegatedController getController()
public void setController(DelegatedController controller)
The - controller for this panel tabpublic java.lang.String getTabId()
public PanelTabset getSubTabset()
public void setSubTabset(PanelTabset panelTabset)
panelTabset - the tabset holding the subtabs for this tab. Null if ths tab has no sub-tabs.public void setRequiredPermission(java.lang.String permission)
permission - The value of the required permission
public void setRequiredPermission(java.lang.String permission,
boolean showAllways)
permission - The value of the required permissionshowAllways - If true the tab is shown disabled even if you have no
permission to use itpublic java.lang.String getRequiredPermission()
public boolean isShowAllways()
public boolean checkAccess()
public PanelTab addSubTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String titleImage,
java.lang.String viewFileName,
DelegatedController controller,
java.lang.String presentationName,
javax.servlet.http.HttpServletRequest request)
tabId - unique tabId within the panel containing this tabtitleKey - resourcebundle key for the tab titletitleImage - image shown as title, not shown if emptyviewFileName - view file form this tabpanelViewCommandClass - must be null if the panelViewCommandClass holds a valid
command (not null) that the subtabs operate as views on the
command of the mainTab may not be null, if the
panelViewCommandClass of the maintab is not set (== null)presentationName - may be either PanelTabset.LEVEL1_HORIZONTAL,
PanelTabset.LEVEL1_VERTICAL, PanelTabset.LEVEL2_HORIZONTAL,
PanelTabset.LEVEL2_VERTICAL or null if the presentationName
should not changed or the default should be set in case none
is set.
public PanelTab addSubTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String viewFileName,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
tabId - unique tabId within the panel containing this tabtitleKey - resourcebundle key for the tab titleviewFileName - view file form this tabpanelViewCommandClass - must be null if the panelViewCommandClass holds a valid
command (not null) that the subtabs operate as views on the
command of the mainTab may not be null, if the
panelViewCommandClass of the maintab is not set (== null)
public PanelTabset getParentTabset()
public void setParentTabset(PanelTabset parentTabset)
parentTabset - the parentTabset to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||