|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.springmvc.FormBindableBase
nl.gx.webmanager.springmvc.panel.PanelTabset
public class PanelTabset
Set of tabs in a panel, of in a panelTab.
| Field Summary | |
|---|---|
static java.lang.String |
LEVEL1_HORIZONTAL
|
static java.lang.String |
LEVEL1_VERTICAL
|
static java.lang.String |
LEVEL2_HORIZONTAL
|
static java.lang.String |
LEVEL2_VERTICAL
|
| Fields inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
editViews |
| Constructor Summary | |
|---|---|
PanelTabset()
default constructor initialises the editviews. |
|
| Method Summary | |
|---|---|
void |
addPanelTab(PanelTab panelTab)
Adds a panelTab to the collection of tab this set is holding. |
PanelTab |
findPanelTab(java.lang.String tabId)
retuens the panelTab with the provided tabId. |
PanelTabFBO |
findPanelViewCommand(java.lang.String tabId)
returns the panelview command for the tab with the givven tabId (f found) if the a tab woth the given Id is found, but doesn;t have a panelCiewCommand the panelViewCommand of the cerruntly selected subTab is returned (if exists). |
PanelTab |
getFirstTabFromIndex(int index,
boolean ascending)
Returns the first tab that can be found from the given index that can be used, returns null if no tab can be found. |
PanelTab |
getNextTab()
Returns the next tab after the current tab that can be used. |
int |
getNumberOfTabs()
returns the number of tabs in this tabset. |
PanelTab[] |
getPanelTabs()
Returns collection containing all accessible and inaccessible tabs that are shown always of the tabset. |
protected PanelTabFBO |
getPanelViewCommandForSelectedTab()
returns the panelViewCommand for the currently active tab if the active (main) tab doesn't have a panelViewCommand, the panelViewCommand of the underlaying currently active subTab is returned. |
java.lang.String |
getPresentationName()
set the presentationName from this tabset |
PanelTab |
getPreviousTab()
Returns the first tab before the current tab that can be used. |
PanelTab |
getSelectedTab()
returns the current active tab within this tabset. |
java.lang.String |
getSelectedTabId()
Return the id of the selected (sub)tab. |
boolean |
isFirstTabSelected()
return true if the first tab of this tabset is selected (can be by default). |
boolean |
isLastTabSelected()
return true if the last tab of this tabset is selected (can be by default). |
PanelTab |
makePanelTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String viewFileName,
java.lang.String titleImage,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
creates a configured new PanelTab instance. |
void |
setPresentationName(java.lang.String presentationName)
set the presentationName for this tabset |
boolean |
setSelectedTabById(java.lang.String tabId)
Sets the currently active tab to the given tabId. |
| Methods inherited from class nl.gx.webmanager.springmvc.FormBindableBase |
|---|
addDisallowedField, addEditView, addValidator, formBackingObject, getControllerDelegationMap, getDelegatedController, getEditView, getEditViewByValue, getParentController, getResourceBaseNames, getValidators, initBinder, initialize, onBind, onBindAndValidate, onSubmit, referenceData, setDelegatedController, setEditViews, setParentController, setValidators, showForm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LEVEL1_HORIZONTAL
public static final java.lang.String LEVEL1_VERTICAL
public static final java.lang.String LEVEL2_HORIZONTAL
public static final java.lang.String LEVEL2_VERTICAL
| Constructor Detail |
|---|
public PanelTabset()
| Method Detail |
|---|
public void setPresentationName(java.lang.String presentationName)
presentationName - may be either PanelTabset.LEVEL1_HORIZONTAL,
PanelTabset.LEVEL1_VERTICAL, PanelTabset.LEVEL2_HORIZONTAL or
PanelTabset.LEVEL2_VERTICALpublic java.lang.String getPresentationName()
public PanelTab[] getPanelTabs()
public int getNumberOfTabs()
public void addPanelTab(PanelTab panelTab)
panelTab - panelTab to addprotected PanelTabFBO getPanelViewCommandForSelectedTab()
public boolean setSelectedTabById(java.lang.String tabId)
tabId - tabId of the tab to be set active (main or sub-tab)
public java.lang.String getSelectedTabId()
public PanelTab getSelectedTab()
public PanelTab findPanelTab(java.lang.String tabId)
tabId - tabId
public PanelTabFBO findPanelViewCommand(java.lang.String tabId)
tabId - tabId
public PanelTab getNextTab()
public PanelTab getFirstTabFromIndex(int index,
boolean ascending)
index - Index from which is searchedascending - Search direction
public PanelTab getPreviousTab()
public boolean isFirstTabSelected()
public boolean isLastTabSelected()
public PanelTab makePanelTab(java.lang.String tabId,
java.lang.String titleKey,
java.lang.String viewFileName,
java.lang.String titleImage,
DelegatedController controller,
javax.servlet.http.HttpServletRequest request)
tabId - unique tabId in this panale configurationtitleKey - resourcebundle key for the tab titleviewFileName - viewname for this tab, may be nulltitleImage - TitleImage of the tab, not shown if nullpanelViewCommandClass - command for this tab, may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||