|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalnavigation.views.NavigationCommSectionDropDownView
public class NavigationCommSectionDropDownView
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.
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 |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
protected static final java.lang.String m_strInCommID
protected static final java.lang.String m_strRelComms
protected static final java.lang.String m_strSubComms
public static final java.lang.String VARNAME_TABSHTML
protected int m_nNumberCols
Constructor Detail |
---|
public NavigationCommSectionDropDownView()
Method Detail |
---|
public java.lang.Object Create()
com.plumtree.uiinfrastructure.activityspace.IManagedObject#Create()
public HTMLElement Display()
com.plumtree.uiinfrastructure.activityspace.IView#Display()
public HTMLScript DisplayJavascript()
com.plumtree.uiinfrastructure.activityspace.IView#DisplayJavascript()
public java.lang.String GetName()
com.plumtree.uiinfrastructure.activityspace.IMVCObject#GetName()
public void Init(IModelRO model, AActivitySpace parent)
com.plumtree.uiinfrastructure.activityspace.IView#Init(IModelRO, AActivitySpace)
protected void AddGoToParentCommTab(HTMLTableRow tRow, ICPListEntryIterator cpList) throws java.lang.Exception
tRow
- The HTMLTableRow where the generated Tab is added tocpList
- ICPListIterator with a parent community (can only be one) or empty list if none exists.
java.lang.Exception
protected void AddGroupsTab(HTMLTableRow tRow, java.lang.String strName, java.lang.String toolTip, java.lang.String strDivID) throws java.lang.Exception
tRow
- The HTMLTableRow where the generated Tab is added tostrName
- Tab display nametoolTip
- Tooltip for the tabstrDivID
- HTML ID for the generated Div element with the html of the links
to display when this tab is actived.
java.lang.Exception
protected void GenerateLinksList(ICPListEntryIterator cpList1, HTMLElement elt) throws HTMLException
cpList1
- List of links to generate the HTMLAnchors fromelt
- HTMLElement to add the HTMLAnchors to
HTMLException
protected HTMLScript PopulateLinksRow(java.lang.String strID, ICPListEntryIterator cpList) throws HTMLException, java.lang.Exception
strID
- Name of the javascript variablecpList
- List of links
HTMLException
java.lang.Exception
protected HTMLScript PopulateRelatedCommsRow(java.lang.String strID, ICPListEntryIterator cpList) throws HTMLException, java.lang.Exception
strID
- Name of the javascript variablecpList1
- List of linkscpList2
- List of links
HTMLException
java.lang.Exception
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |