com.plumtree.portaluiinfrastructure.search
Class PaginationView

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.search.PaginationView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class PaginationView
extends java.lang.Object
implements IView

Author:
CraigS Simple view to return pagination for an IBaseSearchResultModelRO: << Prev 10 Results 11-20 of 57 Next 10 >> You can either make this its own Section in your space, or just call the static DisplayPagination() method, passing in a model interface.

Field Summary
protected  IBaseSearchResultModelRO _model
           
protected  AActivitySpace m_asOwner
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Constructor Summary
PaginationView()
           
 
Method Summary
 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.
static HTMLElement Display508StylePagination(ISearchResultModelRO model, AActivitySpace parent)
          Returns an alternative version of the pagination bar that works well with screenreading software.
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
static HTMLElement DisplayPagination(IBaseSearchResultModelRO model, AActivitySpace parent)
          Returns an HTMLElement for pagination of the results table.
 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).
 
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_asOwner

protected AActivitySpace m_asOwner

_model

protected IBaseSearchResultModelRO _model
Constructor Detail

PaginationView

public PaginationView()
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:
com.plumtree.portaluiinfrastructure.activityspace.IView#Display()

DisplayJavascript

public HTMLScript DisplayJavascript()
Description copied from interface: IView
This method returns the HTMLScript that encompasses the Javascript on the page. This method should be called by IDisplayPages and the resulting Javascript should be put in the HTMLHead element. This can return null.

Specified by:
DisplayJavascript in interface IView
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IView#DisplayJavascript()

DisplayPagination

public static HTMLElement DisplayPagination(IBaseSearchResultModelRO model,
                                            AActivitySpace parent)
Returns an HTMLElement for pagination of the results table.


Display508StylePagination

public static HTMLElement Display508StylePagination(ISearchResultModelRO model,
                                                    AActivitySpace parent)
Returns an alternative version of the pagination bar that works well with screenreading software.


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

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.portaluiinfrastructure.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.portaluiinfrastructure.activityspace.IView#Init(IModelRO, AActivitySpace)



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