|
|||||||||
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()
This method is used by the ASManager to return new instances of managed objects. |
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()
This method returns the HTMLElement that encompasses the output of the View. |
HTMLScript |
DisplayJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page. |
static HTMLTableCell |
GetHorSpacerCell()
Helper function that creates a horizontal spacer cell 4 pixels wide. |
java.lang.String |
GetName()
Return the name of the MVC object. |
void |
Init(IModelRO model,
AActivitySpace parent)
This method initializes the View with the read only model interface it is supposed to draw it's data from as well as it's parent ActivitySpace (necessary to create URLS). |
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()
IManagedObject
Create
in interface IManagedObject
IManagedObject.Create()
public HTMLElement Display()
IView
Display
in interface IView
IView.Display()
public HTMLScript DisplayJavascript()
IView
DisplayJavascript
in interface IView
IView.DisplayJavascript()
public java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
IMVCObject.GetName()
public void Init(IModelRO model, AActivitySpace parent)
IView
Init
in interface IView
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 |