com.plumtree.portalnavigation.views
Class NavigationAccessibleBelowBodyView

java.lang.Object
  extended by com.plumtree.portalnavigation.views.NavigationAccessibleBelowBodyView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class NavigationAccessibleBelowBodyView
extends java.lang.Object
implements IView

Accessible navigation view (used for 508, and low bandwidth). This view displays actions for the My Pages, My Communities, Directory sections. This view is used by NavTypeAccessible in the below body section. No javascript is used.

Author:
MichaelD

Field Summary
static int ACTION_TEXT_MAX_LENGTH
          The maximum length of strings before truncation
protected  AActivitySpace m_asOwner
           
protected  IPluggableNavModelRO m_model
           
static java.lang.String STR_ACTION_DIVIDER
          Action Divider
static java.lang.String STR_MVC_CLASS_NAME
          MVC object name
 
Constructor Summary
NavigationAccessibleBelowBodyView()
           
 
Method Summary
protected  int AddCategoryActionsToCell(HTMLTableCell cell, NavCategoryType navCategoryType)
          Adds the actions for a category to the cell passed in.
protected  void AddParentCommLinkToCell(HTMLTableCell cell)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 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.
 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  HTMLElementCollection WritePageOptions()
          Adds an HTMLTable to the HTMLElementCollection with the Mypage links section
 
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
MVC object name

See Also:
Constant Field Values

ACTION_TEXT_MAX_LENGTH

public static final int ACTION_TEXT_MAX_LENGTH
The maximum length of strings before truncation

See Also:
Constant Field Values

STR_ACTION_DIVIDER

public static final java.lang.String STR_ACTION_DIVIDER
Action Divider

See Also:
Constant Field Values

m_asOwner

protected AActivitySpace m_asOwner

m_model

protected IPluggableNavModelRO m_model
Constructor Detail

NavigationAccessibleBelowBodyView

public NavigationAccessibleBelowBodyView()
Method Detail

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:
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:
IMVCObject.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:
IView.Init(IModelRO, AActivitySpace)

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()

WritePageOptions

protected HTMLElementCollection WritePageOptions()
                                          throws HTMLException,
                                                 java.lang.Exception
Adds an HTMLTable to the HTMLElementCollection with the Mypage links section

Parameters:
col - The HTMLElementCollection to add the HTMLTable too
Throws:
HTMLException
java.lang.Exception

AddCategoryActionsToCell

protected int AddCategoryActionsToCell(HTMLTableCell cell,
                                       NavCategoryType navCategoryType)
Adds the actions for a category to the cell passed in.

Parameters:
cell - Cell that the actions will be added to.
navCategoryType - Category type of the actions to be added.
Returns:
number of Category Actions added

AddParentCommLinkToCell

protected void AddParentCommLinkToCell(HTMLTableCell cell)



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