com.plumtree.portalnavigation.views
Class NavigationCommSectionDropDownView

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

public class NavigationCommSectionDropDownView
extends java.lang.Object

Horizontal navigation view for displaying drop-down menus using jsportalmenus, and combobox framework. This navigation view displays a three tab horizontal menu with community specific content. The menu entries are listed in a row and one set of entries is always displayed in the row. Clicking on one of the tabs displays the entries for that tab. Menu entries will wrap to multiple rows when necessary. This view is used by the NavTypeJSPortalMenuDropDown navigation scheme in the below banner section. It uses javascript functions defined in navtabsections.js (included in NavTypeJSPortalMenuDropDown.java). NavTypeJSPortalMenuDropDown also relies on markers in this view ( NavigationCommonHelpers.CreateDropDownEndMarkers() ). 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 thatuse this view MUST also use the JavaScriptIncludes() method on NavTypeJSPortalMenuDropDown to return proper javascript to support this view.

Author:
robertz, DavidP, MichaelD

Field Summary
protected  int m_nNumberCols
           
protected static java.lang.String m_strInCommID
           
protected static java.lang.String m_strRelComms
           
protected static java.lang.String m_strSubComms
           
static java.lang.String STR_MVC_CLASS_NAME
          MVC ID
static java.lang.String VARNAME_TABSHTML
           
 
Constructor Summary
NavigationCommSectionDropDownView()
           
 
Method Summary
protected  void AddGoToParentCommTab(HTMLTableRow tRow, ICPListEntryIterator cpList)
          NavigationCommSectionComboBoxView has a copy of this funtion too, update both.
protected  void AddGroupsTab(HTMLTableRow tRow, java.lang.String strName, java.lang.String toolTip, java.lang.String strDivID)
          This function generates a clickable tab used to display a horizontal menu with links.
 java.lang.Object Create()
           
 HTMLElement Display()
           
 HTMLScript DisplayJavascript()
           
protected  void GenerateLinksList(ICPListEntryIterator cpList1, HTMLElement elt)
          Helper function that generates HTMLAnchors from the list of provided links and adds them to the specified HTMLElement.
 java.lang.String GetName()
           
 void Init(IModelRO model, AActivitySpace parent)
           
protected  HTMLScript PopulateLinksRow(java.lang.String strID, ICPListEntryIterator cpList)
          Puts the rows of links in a javascript variable.
protected  HTMLScript PopulateRelatedCommsRow(java.lang.String strID, ICPListEntryIterator cpList)
          Puts the rows of links in a javascript variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
MVC ID

See Also:
Constant Field Values

m_strInCommID

protected static final java.lang.String m_strInCommID
See Also:
Constant Field Values

m_strRelComms

protected static final java.lang.String m_strRelComms
See Also:
Constant Field Values

m_strSubComms

protected static final java.lang.String m_strSubComms
See Also:
Constant Field Values

VARNAME_TABSHTML

public static final java.lang.String VARNAME_TABSHTML
See Also:
Constant Field Values

m_nNumberCols

protected int m_nNumberCols
Constructor Detail

NavigationCommSectionDropDownView

public NavigationCommSectionDropDownView()
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()
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)

AddGoToParentCommTab

protected void AddGoToParentCommTab(HTMLTableRow tRow,
                                    ICPListEntryIterator cpList)
                             throws java.lang.Exception
NavigationCommSectionComboBoxView has a copy of this funtion too, update both. Note that the javascript link is different in the two functions.

Parameters:
tRow - The HTMLTableRow where the generated Tab is added to
cpList - ICPListIterator with a parent community (can only be one) or empty list if none exists.
Throws:
java.lang.Exception

AddGroupsTab

protected void AddGroupsTab(HTMLTableRow tRow,
                            java.lang.String strName,
                            java.lang.String toolTip,
                            java.lang.String strDivID)
                     throws java.lang.Exception
This function generates a clickable tab used to display a horizontal menu with links.

Parameters:
tRow - The HTMLTableRow where the generated Tab is added to
strName - Tab display name
toolTip - Tooltip for the tab
strDivID - HTML ID for the generated Div element with the html of the links to display when this tab is actived.
Throws:
java.lang.Exception

GenerateLinksList

protected void GenerateLinksList(ICPListEntryIterator cpList1,
                                 HTMLElement elt)
                          throws HTMLException
Helper function that generates HTMLAnchors from the list of provided links and adds them to the specified HTMLElement.

Parameters:
cpList1 - List of links to generate the HTMLAnchors from
elt - HTMLElement to add the HTMLAnchors to
Throws:
HTMLException

PopulateLinksRow

protected HTMLScript PopulateLinksRow(java.lang.String strID,
                                      ICPListEntryIterator cpList)
                               throws HTMLException,
                                      java.lang.Exception
Puts the rows of links in a javascript variable. Also adds a Join this Community button if the user isn't member of the current community and Edit This Community button if the user has at least Edit access to the current community.

Parameters:
strID - Name of the javascript variable
cpList - List of links
Returns:
HTMLScript HTMLScript block with the variable definition
Throws:
HTMLException
java.lang.Exception

PopulateRelatedCommsRow

protected HTMLScript PopulateRelatedCommsRow(java.lang.String strID,
                                             ICPListEntryIterator cpList)
                                      throws HTMLException,
                                             java.lang.Exception
Puts the rows of links in a javascript variable. Same as PopulateLinksRow, except doesn't add the Join this Community and Edit this Community buttons.

Parameters:
strID - Name of the javascript variable
cpList1 - List of links
cpList2 - List of links
Returns:
HTMLScript HTMLScript block with the variable definition
Throws:
HTMLException
java.lang.Exception



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