|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.TabManager
Field Summary | |
static java.lang.String |
CURRENT_TAB
|
static java.lang.String |
EDITABLE_TABS
|
static java.lang.String |
GENERATING_TAB_LINKS
|
static java.lang.String |
GENERATING_TAB_PARENT
|
static java.lang.String |
HIDE_TAB_RC
|
static java.lang.String |
TABS_JSPS_PV_KEY
|
Constructor Summary | |
TabManager()
|
Method Summary | |
static java.lang.Object |
getCommonTabData(java.lang.Object key,
HttpServletRequest req)
Gets previously stored common tab data. |
static java.lang.String |
getCurrentTab(HttpServletRequest req)
Gets the name of the current tab for the current tabbed operation, or null if none exists |
static java.lang.String |
getCurrentTab(Operation op,
HttpServletRequest req)
Deprecated. Pass in a tabbed operation instead |
static java.lang.String |
getCurrentTab(TabbedOperation op,
HttpServletRequest req)
Gets the name of the current tab for the specified operation, or null if none exists |
static Row |
getCurrentTabParent(boolean refresh,
HttpServletRequest req)
Deprecated. You no longer should be passing in a refresh variable. Tab parent rows never need to be refreshed at this point - instead they have their values altered if necessary when a equivalent Row is updateded. |
static Row |
getCurrentTabParent(HttpServletRequest req)
Gets the current parent row for the tabs. |
static java.lang.String |
getTabBody(HttpServletRequest req)
Gets the JSP which should be used as the tab body |
static java.lang.String |
getTabBodyOverride(HttpServletRequest req)
Gets the JSP which has been set as the tab body override. |
protected static java.util.List |
getTabFields(Row tabParent,
HttpServletRequest req)
Get the tab fields as defined by the tabs property group |
static boolean |
isCurrentTabParent(Row row,
HttpServletRequest req)
Tests if the specified row is the current tab parent |
static boolean |
isGeneratingTabParent(HttpServletRequest req)
Tests if the tab parent is currently being generated |
static boolean |
isTabField(java.lang.String fieldName,
HttpServletRequest req)
Tests if the field with the specified name should be rendered as a tab |
protected static boolean |
isTabField(java.lang.String fieldName,
Row tabParent,
HttpServletRequest req)
Tests if the field with the specified name should be rendered as a tab |
static java.lang.String |
prepareTabs(LayoutDisplayPropertyGroup layout,
HttpServletRequest req)
Prepares the system for displaying tabs, returning the body JSP which should be displayed. |
static java.lang.String |
prepareTabs(java.lang.String bodyJsp,
HttpServletRequest req)
Deprecated. You need to pass in the whole layout display property group |
static java.lang.Object |
setCommonTabData(java.lang.Object key,
java.lang.Object data,
HttpServletRequest req)
Sets an object as common tab data. |
static void |
setCurrentTab(java.lang.String tab,
HttpServletRequest req)
Sets the name of the current tab for the current tabbed operation. |
static void |
setCurrentTab(java.lang.String tab,
Operation op,
HttpServletRequest req)
Sets the name of the current tab for the specified operation. |
static void |
setCurrentTabParent(Row tabParent,
HttpServletRequest req)
Sets the current parent row for the tabs |
static void |
setTabBodyOverride(java.lang.String override,
HttpServletRequest req)
Deprecated. Instead of the tab body override use the override ability on a magic request |
static void |
showTab(java.lang.String tab,
HttpServletRequest req,
HttpServletResponse res)
Shows the specified tab. |
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 CURRENT_TAB
public static final java.lang.String EDITABLE_TABS
public static final java.lang.String TABS_JSPS_PV_KEY
public static final java.lang.String GENERATING_TAB_PARENT
public static final java.lang.String GENERATING_TAB_LINKS
public static final java.lang.String HIDE_TAB_RC
Constructor Detail |
public TabManager()
Method Detail |
public static java.lang.Object getCommonTabData(java.lang.Object key, HttpServletRequest req)
key
- The key which identifies a piece of common tab datareq
- The HttpServletRequest
public static java.lang.String getCurrentTab(HttpServletRequest req)
public static java.lang.String getCurrentTab(Operation op, HttpServletRequest req)
public static java.lang.String getCurrentTab(TabbedOperation op, HttpServletRequest req)
public static Row getCurrentTabParent(HttpServletRequest req)
public static Row getCurrentTabParent(boolean refresh, HttpServletRequest req) throws CMException
CMException
public static java.lang.String getTabBody(HttpServletRequest req)
public static java.lang.String getTabBodyOverride(HttpServletRequest req)
protected static java.util.List getTabFields(Row tabParent, HttpServletRequest req) throws CMException
CMException
public static boolean isCurrentTabParent(Row row, HttpServletRequest req)
public static boolean isGeneratingTabParent(HttpServletRequest req)
public static boolean isTabField(java.lang.String fieldName, HttpServletRequest req) throws CMException
CMException
protected static boolean isTabField(java.lang.String fieldName, Row tabParent, HttpServletRequest req) throws CMException
CMException
public static java.lang.String prepareTabs(java.lang.String bodyJsp, HttpServletRequest req)
public static java.lang.String prepareTabs(LayoutDisplayPropertyGroup layout, HttpServletRequest req)
public static java.lang.Object setCommonTabData(java.lang.Object key, java.lang.Object data, HttpServletRequest req)
key
- The key which identifies this piece of common tab datareq
- The HttpServletRequest
public static void setCurrentTab(java.lang.String tab, HttpServletRequest req)
showTab()
method.
public static void setCurrentTab(java.lang.String tab, Operation op, HttpServletRequest req)
showTab()
method.
public static void setCurrentTabParent(Row tabParent, HttpServletRequest req) throws CMException
CMException
public static void setTabBodyOverride(java.lang.String override, HttpServletRequest req)
public static void showTab(java.lang.String tab, HttpServletRequest req, HttpServletResponse res) throws CMException
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |