|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalnavigation.views.NavigationHorizontalComboBoxView
public class NavigationHorizontalComboBoxView
View for listing main navigation tabs using HTML Select elements This navigation view displays "My Pages", "My Communities", "Directory" and mandatory links combobox menus. Mandatory communities are displayed in a separate row as tabs. This view is used by the NavTypeHorizontalComboBox navigation scheme in the above banner section, although it can be used in any horizontal space since it doesn't have any external dependencies except for the mandatory community tabs which only needs navigationhorizontalcommon.js (included in NavTypeHorizontalComboBox.java). 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.
Field Summary | |
---|---|
static int |
COMMUNITY_TAB
|
static int |
DOCUMENTS_TAB
|
static java.lang.String |
m_spacerOptionRow
Constant definitions of common strings |
static java.lang.String |
m_spacerOptionRowFiller
|
static java.lang.String |
m_spacerOptionRowShort
|
static int |
MENU_TEXT_MAX_LENGTH
Truncation width of the strings in the HTML Selects |
static int |
MYPAGES_TAB
Index for each of the navigation tabs |
static int |
PREFERENCES_TAB
|
static java.lang.String |
STR_MVC_CLASS_NAME
MVC name |
Constructor Summary | |
---|---|
NavigationHorizontalComboBoxView()
|
Method Summary | |
---|---|
protected void |
AddSelectOptions(HTMLSelect select,
ICPListEntryIterator cpList,
java.lang.String strLabelPrefix)
Helper function to populate a select box with options from an ASCompoundList |
static void |
AddSpacerSelectBoxOption(HTMLSelect select)
Helper function that adds a row with dashes to the HTML Select menu |
static void |
AddSpacerSelectBoxOptionFiller(HTMLSelect select)
Helper function that adds a padding row to the HTML Select menu |
static void |
AddSpacerSelectBoxOptionShort(HTMLSelect select)
Helper function that adds an empty row to the HTML Select menu |
protected void |
AddTitleSelectBoxOption(HTMLSelect select,
java.lang.String strTitle)
Helper function that adds an row with a label to the HTML Select menu. |
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 function that creates an HTML Select and adds it to the provided HTMLTableCell |
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. |
HTMLScriptCollection |
DisplayViewJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page. |
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 |
WriteCommunitiesSection(HTMLTableRow tRow)
Adds a HTML Select to the specified HTMLTableRow with Community actions and My Community for the current user |
protected void |
WriteDocumentsSection(HTMLTableRow tRow)
Adds a HTML Select to the specified HTMLTableRow with directory links |
protected void |
WriteMandLinksSection(HTMLTableRow tRow)
Adds a HTML Select to the specified HTMLTableRow with the Mandatory Links for the current user |
protected void |
WriteMyPagesSection(HTMLTableRow tRow)
Adds a HTML Select to the specified HTMLTableRow with Mypage actions and My pages for the current user. |
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
public static final int MENU_TEXT_MAX_LENGTH
public static final int MYPAGES_TAB
public static final int COMMUNITY_TAB
public static final int DOCUMENTS_TAB
public static final int PREFERENCES_TAB
public static final java.lang.String m_spacerOptionRow
public static final java.lang.String m_spacerOptionRowFiller
public static final java.lang.String m_spacerOptionRowShort
Constructor Detail |
---|
public NavigationHorizontalComboBoxView()
Method Detail |
---|
public java.lang.Object Create()
IManagedObject
Create
in interface IManagedObject
IManagedObject.Create()
public HTMLScript DisplayJavascript()
DisplayJavascript
in interface IView
IView.DisplayJavascript()
public HTMLElement Display()
IView
Display
in interface IView
IView.Display()
public HTMLScriptCollection DisplayViewJavascript()
IView.DisplayJavascript()
public java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
com.plumtree.xpshared.activityspace.IView#GetName()
public void Init(IModelRO model, AActivitySpace parent)
IView
Init
in interface IView
com.plumtree.xpshared.activityspace.IView#Init(IModel, AActivitySpace)
protected void AddSelectOptions(HTMLSelect select, ICPListEntryIterator cpList, java.lang.String strLabelPrefix) throws java.lang.Exception
select
- HTML Select to populatecpList
- The list of links
java.lang.Exception
public static void AddSpacerSelectBoxOption(HTMLSelect select) throws HTMLException
select
- HTML Select to add the option row to
HTMLException
public static void AddSpacerSelectBoxOptionFiller(HTMLSelect select) throws HTMLException
select
- HTML Select to add the option row to
HTMLException
public static void AddSpacerSelectBoxOptionShort(HTMLSelect select) throws HTMLException
select
- HTML Select to add the option to
HTMLException
protected void AddTitleSelectBoxOption(HTMLSelect select, java.lang.String strTitle) throws HTMLException
select
- HTML Select to add the option tostrTitle
- The option row display
HTMLException
protected HTMLSelect CreateSelectEleNavMenu(HTMLTableCell tCell, java.lang.String strSelectName) throws HTMLException
tCell
- The HTMLTable cell to add the HTML Select toostrSelectName
- The HTML ID of the select
HTMLException
protected void WriteCommunitiesSection(HTMLTableRow tRow) throws java.lang.Exception
tRow
- The HTMLTableRow to add the HTML Select to
HTMLException
java.lang.Exception
protected void WriteDocumentsSection(HTMLTableRow tRow) throws java.lang.Exception
tRow
- The HTMLTableRow to add the HTML Select to
HTMLException
java.lang.Exception
protected void WriteMandLinksSection(HTMLTableRow tRow) throws java.lang.Exception
tRow
- The HTMLTableRow to add the HTML Select to
HTMLException
java.lang.Exception
protected void WriteMyPagesSection(HTMLTableRow tRow) throws java.lang.Exception
tRow
- The HTMLTableRow to add the HTML Select to
HTMLException
java.lang.Exception
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |