com.plumtree.portalnavigation.views
Class NavigationJSPortalMenuDropDownView

java.lang.Object
  extended by com.plumtree.portalnavigation.views.NavigationJSPortalMenuDropDownView

public class NavigationJSPortalMenuDropDownView
extends java.lang.Object

Horizontal navigaton scheme with dropdown menus using the JSPortalMenu framework. This navigation view displays "My Pages", "My Communities", "Directory" and mandatory links dropdown menus using the JSPortalMenu framework. Mandatory communities and link to Administration are displayed using same tabs as the menu tabs. The tabs will wrap to multiple rows if there are too many tabs to fit on one row. This view is used by the NavTypeJSPortalMenuDropDown in the above banner view. The menu framework is defined in navjsportalmenufuncs.js and functions in navjsportalmenucommon.js is used for the mandatory community tabs. Now supports browser detection internally, so this view can be used as a nested view by other navigation views. This view supports auto-browser handling so it can be used by external custom navigations. Custom navs that use this view MUST also use the JavaScriptIncludes() method on NavTypeJSPortalMenuDropDown to return proper javascript to support this view.

Author:
RobertZ, DavidP

Field Summary
protected  int m_nDirectoryMenuEntries
           
protected  int m_nMandatoryLinksEntries
           
protected  int m_nMyCommsMenuEntries
           
protected  int m_nMyPageMenuEntries
           
static java.lang.String STR_MVC_CLASS_NAME
          Drop down view class name
 
Constructor Summary
NavigationJSPortalMenuDropDownView()
           
 
Method Summary
 java.lang.Object Create()
           
protected  void CreateCommMembershipMenu(HTMLScriptCollection col)
          Creates the dropdown menu with the Communities the current user is a member of.
protected  HTMLScript CreateDDTabsArray()
          This function populates an array of Tabs with the navigation menus to show Element 0: Display name Element 1: ID of the menu Element 2: Tooltip (if needed);
protected  void CreateDocMenu(HTMLScriptCollection col)
          Creates the dropdown menu with the Directory links.
protected  void CreateMandatoryLinksMenu(HTMLScriptCollection col)
          Creates the dropdown menu with the current user's Mandatory Links Defines javascript variables in HTMLScript blocks that are added to the HTMLScriptCollection
protected  void CreateMyPageMenu(HTMLScriptCollection col)
          Creates the dropdown menu with the current user's My pages Defines javascript variables in HTMLScript blocks that are added to the HTMLScriptCollection
 HTMLElement Display()
           
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
 java.lang.String GetName()
           
 void Init(IModelRO model, AActivitySpace parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_nMyPageMenuEntries

protected int m_nMyPageMenuEntries

m_nMyCommsMenuEntries

protected int m_nMyCommsMenuEntries

m_nDirectoryMenuEntries

protected int m_nDirectoryMenuEntries

m_nMandatoryLinksEntries

protected int m_nMandatoryLinksEntries

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
Drop down view class name

See Also:
Constant Field Values
Constructor Detail

NavigationJSPortalMenuDropDownView

public NavigationJSPortalMenuDropDownView()
Method Detail

Create

public java.lang.Object Create()
See Also:
com.plumtree.uiinfrastructure.activityspace.IManagedObject#Create()

Display

public HTMLElement Display()
See Also:
com.plumtree.uiinfrastructure.activityspace.IView#Display()

DisplayJavascript

public HTMLScript DisplayJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page.

Returns:
HTMLScript
See Also:
com.plumtree.uiinfrastructure.activityspace.IView#DisplayJavascript()

GetName

public java.lang.String GetName()
See Also:
com.plumtree.uiinfrastructure.activityspace.IMVCObject#GetName()

Init

public void Init(IModelRO model,
                 AActivitySpace parent)
See Also:
com.plumtree.uiinfrastructure.activityspace.IView#Init(IModelRO, AActivitySpace)

CreateCommMembershipMenu

protected void CreateCommMembershipMenu(HTMLScriptCollection col)
                                 throws HTMLException
Creates the dropdown menu with the Communities the current user is a member of. Defines javascript variables in HTMLScript blocks that are added to the HTMLScriptCollection

Parameters:
col - The HTMLScriptCollection to add the javascript too
Throws:
HTMLException

CreateDDTabsArray

protected HTMLScript CreateDDTabsArray()
                                throws HTMLException
This function populates an array of Tabs with the navigation menus to show Element 0: Display name Element 1: ID of the menu Element 2: Tooltip (if needed);

Parameters:
script - HTMLScript block with the array
Throws:
HTMLException

CreateDocMenu

protected void CreateDocMenu(HTMLScriptCollection col)
                      throws HTMLException
Creates the dropdown menu with the Directory links. Defines javascript variables in HTMLScript blocks that are added to the HTMLScriptCollection

Parameters:
col - The HTMLScriptCollection to add the javascript too
Throws:
HTMLException

CreateMandatoryLinksMenu

protected void CreateMandatoryLinksMenu(HTMLScriptCollection col)
                                 throws HTMLException
Creates the dropdown menu with the current user's Mandatory Links Defines javascript variables in HTMLScript blocks that are added to the HTMLScriptCollection

Parameters:
col - The HTMLScriptCollection to add the javascript too
Throws:
HTMLException

CreateMyPageMenu

protected void CreateMyPageMenu(HTMLScriptCollection col)
                         throws HTMLException
Creates the dropdown menu with the current user's My pages Defines javascript variables in HTMLScript blocks that are added to the HTMLScriptCollection

Parameters:
col - The HTMLScriptCollection to add the javascript too
Throws:
HTMLException



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.