|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalnavigation.views.NavigationCommSectionComboBoxView
public class NavigationCommSectionComboBoxView
Horizontal navigation scheme using HTML select elements as menus (aka comboboxes or pull-down menus). This navigation view displays one to three community specific combobox menus with Community actions and community pages, Subcommunities and Related communities. This view is used by the NavTypeHorizontalComboBox navigation scheme in the below banner section, although it can be used in any horizontal space since it doesn't have any external dependencies. Combobox menus are native HTML elements, making them simple to create and use and they work in all browsers. The downside is that they are not very customizable. All entries in the list use the same style and they don't have support for images or other HTML in the menus. Javascript is used to handle menu clicks.
Field Summary | |
---|---|
protected int |
m_nNumberCols
Not used |
protected static java.lang.String |
m_strInCommID
Javascript variable name constants |
protected static java.lang.String |
m_strRelComms
|
protected static java.lang.String |
m_strSubComms
|
static java.lang.String |
STR_MVC_CLASS_NAME
MVC name |
Constructor Summary | |
---|---|
NavigationCommSectionComboBoxView()
|
Method Summary | |
---|---|
protected void |
AddGoToParentCommTab(HTMLTableRow tRow,
ICPListEntryIterator cpList)
Adds a tab with go to parent community image and action if there is a parent community. |
protected void |
AddTitleSelectBoxOption(HTMLSelect select,
java.lang.String strTitle)
Adds an HTML option with specified string to the provided HTML Select. |
java.lang.Object |
Create()
|
protected HTMLSelect |
CreateSelectEleNavMenu(HTMLTableCell tCell,
java.lang.String strSelectName)
Helper method that adds an HTML select to the provided HTMLTableCell, also returns the HTML Select element. |
HTMLElement |
Display()
|
HTMLScript |
DisplayJavascript()
|
static HTMLTableCell |
GetHorSpacerCell()
Helper function that creates a horizontal spacer cell 4 pixels wide. |
java.lang.String |
GetName()
|
void |
Init(IModelRO model,
AActivitySpace parent)
|
protected void |
WriteInCommComboBox(HTMLTableRow tRow,
CommunityNavPage commP)
Adds an HTML Select with an HTML Select containing In This Community links (Community pages and Community knowledge directoy) |
protected void |
WriteRelCommsComboBox(HTMLTableRow tRow,
CommunityNavPage commP)
Adds an HTML Select with an HTML Select containing Related Community links. |
protected void |
WriteSubCommsComboBox(HTMLTableRow tRow,
CommunityNavPage commP)
Adds an HTML Select with an HTML Select containing Subcommunity links. |
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
protected int m_nNumberCols
Constructor Detail |
---|
public NavigationCommSectionComboBoxView()
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 AddTitleSelectBoxOption(HTMLSelect select, java.lang.String strTitle) throws HTMLException
select
- The Select to add the generated option tostrTitle
- The option label
HTMLException
protected HTMLSelect CreateSelectEleNavMenu(HTMLTableCell tCell, java.lang.String strSelectName) throws HTMLException
tCell
- The HTMLTableCell to add the generated select toostrSelectName
- HTML ID of the select
HTMLException
protected void WriteInCommComboBox(HTMLTableRow tRow, CommunityNavPage commP) throws HTMLException
tRow
- The Select to add the generated HTML select tocommP
- The CommunityNavPage
HTMLException
protected void WriteRelCommsComboBox(HTMLTableRow tRow, CommunityNavPage commP) throws HTMLException
tRow
- The Select to add the generated HTML select tocommP
- The CommunityNavPage
HTMLException
protected void WriteSubCommsComboBox(HTMLTableRow tRow, CommunityNavPage commP) throws HTMLException
tRow
- The Select to add the generated HTML select tocommP
- The CommunityNavPage
HTMLException
protected void AddGoToParentCommTab(HTMLTableRow tRow, ICPListEntryIterator cpList) throws java.lang.Exception
tRow
- The HTMLTableRow to add the Tab toocpList
- ICPListIterator with a parent community (can only be one) or empty list if none exists.
java.lang.Exception
public static HTMLTableCell GetHorSpacerCell()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |