|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.uiparts.NavigationJSPortalMenuHelpers
public class NavigationJSPortalMenuHelpers
NavigationJSPortalMenuHelpers provides helper methods to pluggable navigations that use the Plumtree JS Portal Menu Drop Downs. The available helper methods are MakeDDMenu and GetPlumtreeJSFrameworkJavaScript. MakeDDMenu will write to javascript the list of links to be displayed in a drop down menu in the format that the javascript framework for these drop downs will recognize. It uses the String strMenuID to determine which tab the drop down menu is to drop down from, and it uses the ICPListEntryIterator cpList to iterate through and write out each of these links. MakeDDMenu should be called from inside the drop down view, once for each drop down menu. See com.plumtree.portalnavigation.NavigationJSPortalMenuDropDownView to see how MakeDDMenu is used there. GetPlumtreeJSFrameworkJavaScript returns a HTMLScriptCollection of the javascript that is needed for use by the jsportalmenus. This includes several .js files. GetPlumtreeJSFrameworkJavaScript should be called in the drop down NavType's JavaScriptIncludes method. See com.plumtree.portalnavigation.NavTypeJSPortalMenuDropDown to see how GetPlumtreeJSFrameworkJavaScript is used there.
Field Summary | |
---|---|
static java.lang.String |
COL_ARRAY_ID_PREFIX
|
static java.lang.String |
DATA_ARRAY_ID_PREFIX
Prefix of the Javascript array names |
static int |
DEFAULT_DDMENU_TEXT_MAX_LENGTH
Default width of text in the ISC dropdown menus |
static java.lang.String |
LISTVIEW_ID_PREFIX
|
static java.lang.String |
m_strCommID
IDs of the ISC ListViewer objects |
static java.lang.String |
m_strDocID
|
static java.lang.String |
m_strMandLinksID
|
static java.lang.String |
m_strMyPageID
|
static java.lang.String |
m_strPrefsID
|
static java.lang.String |
m_strSubCommID
|
Constructor Summary | |
---|---|
NavigationJSPortalMenuHelpers()
|
Method Summary | |
---|---|
static HTMLScript |
GetPlumtreeCommunityTabJavaScript(AActivitySpace owner)
Defines the required javascript includes for the navigation schemes using Community Tabs. |
static HTMLScriptCollection |
GetPlumtreeJSFrameworkJavaScript(AActivitySpace owner)
Defines the required javascript includes for the navigation schemes using Plumtree's jsportalmenu JavaScript framework |
static HTMLScriptCollection |
GetPlumtreeJSFrameworkNoCommunityTabJavaScript(AActivitySpace owner)
Defines the required javascript includes for the navigation schemes using Plumtree's jsportalmenu JavaScript framework |
static HTMLScript |
GetPlumtreeMandatoryTabJavaScript(AActivitySpace owner)
Defines the required javascript includes for the navigation schemes using Mandatory Tabs. |
static void |
MakeDDMenu(HTMLScriptCollection col,
AActivitySpace parent,
ICPListEntryIterator cpList,
java.lang.String strMenuID)
Helper function to populate and create a new JS Portal Menu ListViewer object used for the dropdown menu. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_DDMENU_TEXT_MAX_LENGTH
public static final java.lang.String DATA_ARRAY_ID_PREFIX
public static final java.lang.String COL_ARRAY_ID_PREFIX
public static final java.lang.String LISTVIEW_ID_PREFIX
public static final java.lang.String m_strCommID
public static final java.lang.String m_strDocID
public static final java.lang.String m_strMandLinksID
public static final java.lang.String m_strMyPageID
public static final java.lang.String m_strPrefsID
public static final java.lang.String m_strSubCommID
Constructor Detail |
---|
public NavigationJSPortalMenuHelpers()
Method Detail |
---|
public static void MakeDDMenu(HTMLScriptCollection col, AActivitySpace parent, ICPListEntryIterator cpList, java.lang.String strMenuID)
col
- HTMLScriptCollectionparent
- ActivityspacecpList
- List with links to populate the menu withstrMenuID
- ID of the menupublic static HTMLScriptCollection GetPlumtreeJSFrameworkJavaScript(AActivitySpace owner)
public static HTMLScriptCollection GetPlumtreeJSFrameworkNoCommunityTabJavaScript(AActivitySpace owner)
public static HTMLScript GetPlumtreeMandatoryTabJavaScript(AActivitySpace owner)
public static HTMLScript GetPlumtreeCommunityTabJavaScript(AActivitySpace owner)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |