com.plumtree.portalpages.common.uiparts
Class PlumtreeTopBarView

java.lang.Object
  extended by com.plumtree.portalpages.common.uiparts.PlumtreeTopBarView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class PlumtreeTopBarView
extends java.lang.Object
implements IView

Author:
patrickc TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
protected static java.lang.String m_actionDivName
           
protected  AActivitySpace m_asOwner
           
protected static java.lang.String m_editacctDivName
           
protected  NavigationModel m_model
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Constructor Summary
PlumtreeTopBarView()
           
 
Method Summary
protected  void AddDoubleLineBreakToElement(HTMLElement element)
           
protected  void AddHelpButtonSpanToElement(HTMLElement element)
           
protected  void AddLoginLogoutLinkToElement(HTMLElement element)
           
protected  void AddMyAccountLinkToElement(HTMLElement element)
           
protected  void AddMyHomeLinkToElement(HTMLElement element)
           
protected  void AddRulesDebugButtonSpanToElement(HTMLElement element)
           
protected  void AddSearchButtonAdvancedToElement(HTMLElement element, SearchFormFactory factory)
           
protected  void AddSearchButtonBasicToElement(HTMLElement element, SearchFormFactory factory)
           
protected  void AddSearchButtonFederatedToElement(HTMLElement element, SearchFormFactory factory)
           
protected  void AddSearchControlsSpanToElement(HTMLElement element)
           
protected  void AddSearchScopePulldownToElement(HTMLElement element, SearchFormFactory factory)
           
protected  void AddSearchTextBoxToElement(HTMLElement element, SearchFormFactory factory)
           
protected  void AddUserNavSpanToElement(HTMLElement element)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  HTMLSpan CreateSpacerHTMLSpan(int pixelWidth)
           
protected  HTMLImg CreateVerticalBarSpacerImg(java.lang.String width)
           
 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.
protected  HTMLElement GetMainTableElement()
          Writes out the HTML for the topbar
 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 SetupBannerSearchSettings(SearchFormFactory factory)
          Helper method to setup the search form with all the needed settings
 
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
See Also:
Constant Field Values

m_actionDivName

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

m_editacctDivName

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

m_asOwner

protected AActivitySpace m_asOwner

m_model

protected NavigationModel m_model
Constructor Detail

PlumtreeTopBarView

public PlumtreeTopBarView()
Method Detail

Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Display

public HTMLElement Display()
Description copied from interface: IView
This method returns the HTMLElement that encompasses the output of the View.

Specified by:
Display in interface IView
See Also:
com.plumtree.xpshared.activityspace.IView#display()

DisplayJavascript

public HTMLScript DisplayJavascript()
This method returns the HTMLScript that encompasses the Javascript on the page.

Specified by:
DisplayJavascript in interface IView
Returns:
HTMLScript
See Also:
IView.DisplayJavascript()

GetName

public java.lang.String GetName()
Description copied from interface: IMVCObject
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Returns:
the name of the object.
See Also:
com.plumtree.xpshared.activityspace.IView#GetName()

Init

public void Init(IModelRO model,
                 AActivitySpace parent)
Description copied from interface: IView
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).

Specified by:
Init in interface IView
See Also:
com.plumtree.xpshared.activityspace.IView#Init(IModel, AActivitySpace)

GetMainTableElement

protected HTMLElement GetMainTableElement()
Writes out the HTML for the topbar

Returns:
Generated HTML for the topbar

CreateVerticalBarSpacerImg

protected HTMLImg CreateVerticalBarSpacerImg(java.lang.String width)

CreateSpacerHTMLSpan

protected HTMLSpan CreateSpacerHTMLSpan(int pixelWidth)

AddUserNavSpanToElement

protected void AddUserNavSpanToElement(HTMLElement element)

AddMyHomeLinkToElement

protected void AddMyHomeLinkToElement(HTMLElement element)

AddDoubleLineBreakToElement

protected void AddDoubleLineBreakToElement(HTMLElement element)

AddMyAccountLinkToElement

protected void AddMyAccountLinkToElement(HTMLElement element)

AddLoginLogoutLinkToElement

protected void AddLoginLogoutLinkToElement(HTMLElement element)

AddHelpButtonSpanToElement

protected void AddHelpButtonSpanToElement(HTMLElement element)

AddRulesDebugButtonSpanToElement

protected void AddRulesDebugButtonSpanToElement(HTMLElement element)

AddSearchControlsSpanToElement

protected void AddSearchControlsSpanToElement(HTMLElement element)

AddSearchScopePulldownToElement

protected void AddSearchScopePulldownToElement(HTMLElement element,
                                               SearchFormFactory factory)

AddSearchTextBoxToElement

protected void AddSearchTextBoxToElement(HTMLElement element,
                                         SearchFormFactory factory)

AddSearchButtonBasicToElement

protected void AddSearchButtonBasicToElement(HTMLElement element,
                                             SearchFormFactory factory)

AddSearchButtonAdvancedToElement

protected void AddSearchButtonAdvancedToElement(HTMLElement element,
                                                SearchFormFactory factory)

AddSearchButtonFederatedToElement

protected void AddSearchButtonFederatedToElement(HTMLElement element,
                                                 SearchFormFactory factory)

SetupBannerSearchSettings

protected void SetupBannerSearchSettings(SearchFormFactory factory)
Helper method to setup the search form with all the needed settings




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