com.plumtree.portalpages.browsing.objectselection.portlets
Class PortletSelectionViewHelper

java.lang.Object
  extended by com.plumtree.portalpages.browsing.objectselection.portlets.PortletSelectionViewHelper
All Implemented Interfaces:
IObjectViewHelper

public class PortletSelectionViewHelper
extends java.lang.Object
implements IObjectViewHelper

Author:
michaeld

Field Summary
static java.lang.String HTMLINPUT_SELECTION_OBJECT
          HTML Input Checkbox
static java.lang.String JAVASCRIPT_OPEN_INVITE
          Javascript Function: openInvite
static java.lang.String JAVASCRIPT_PREVIEW_GADGET
          Javascript Function: previewGadget
static java.lang.String PREVIEW_PORTLET_SUBSPACE
          subspace key for preview portlet
static java.lang.String STR_508_USER_INTERFACE
          Section 508 User Interface String
static java.lang.String STR_WML_USER_INTERFACE
          Devices User Interface String
 
Constructor Summary
PortletSelectionViewHelper()
           
 
Method Summary
 HTMLElement AddObjectViewHTML(IObjectModelRO model)
          Returns additional HTML as an html element for the object view to display.
 void Display508Object(int nObjectIndex, HTMLTable tableObjects, IObjectModelRO model, AActivitySpace parent)
          Displays the object in 508 mode at the given index in the query result.
 HTMLScriptCollection DisplayJavascriptCollection(AActivitySpace asOwner, IObjectModelRO model)
          Returns the javascript for this view helper.
 void DisplayObject(int nObjectIndex, int nRowIndex, HTMLTable tableObjects, IObjectModelRO model, AActivitySpace asOwner)
          Displays the object at the given index in the query result.
 boolean GetSimpleMode(IObjectModelRO _model)
          This helper method gets whether or not we are in simple mode.
 java.lang.String GetThereAreNoItemsString(AActivitySpace asOwner)
          Return the message to display if there are no items.
 void SetExpandAnchor(HTMLAnchor anchor, IObjectModelRO model)
          This method is called by the ObjectView to fill out the anchor for the expand / collapse links on the object view header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTMLINPUT_SELECTION_OBJECT

public static final java.lang.String HTMLINPUT_SELECTION_OBJECT
HTML Input Checkbox

See Also:
Constant Field Values

JAVASCRIPT_OPEN_INVITE

public static final java.lang.String JAVASCRIPT_OPEN_INVITE
Javascript Function: openInvite

See Also:
Constant Field Values

JAVASCRIPT_PREVIEW_GADGET

public static final java.lang.String JAVASCRIPT_PREVIEW_GADGET
Javascript Function: previewGadget

See Also:
Constant Field Values

STR_508_USER_INTERFACE

public static final java.lang.String STR_508_USER_INTERFACE
Section 508 User Interface String

See Also:
Constant Field Values

STR_WML_USER_INTERFACE

public static final java.lang.String STR_WML_USER_INTERFACE
Devices User Interface String

See Also:
Constant Field Values

PREVIEW_PORTLET_SUBSPACE

public static final java.lang.String PREVIEW_PORTLET_SUBSPACE
subspace key for preview portlet

See Also:
Constant Field Values
Constructor Detail

PortletSelectionViewHelper

public PortletSelectionViewHelper()
Method Detail

AddObjectViewHTML

public HTMLElement AddObjectViewHTML(IObjectModelRO model)
Description copied from interface: IObjectViewHelper
Returns additional HTML as an html element for the object view to display.

Specified by:
AddObjectViewHTML in interface IObjectViewHelper
Returns:
HTMLElement
See Also:
com.plumtree.portalpages.common.objects.IObjectViewHelper#AddObjectViewHTML()

GetThereAreNoItemsString

public java.lang.String GetThereAreNoItemsString(AActivitySpace asOwner)
Description copied from interface: IObjectViewHelper
Return the message to display if there are no items. Return an empty string if you want to use the default.

Specified by:
GetThereAreNoItemsString in interface IObjectViewHelper
Returns:
String
See Also:
IObjectViewHelper#GetThereAreNoItemsString(AActivitySpace)

Display508Object

public void Display508Object(int nObjectIndex,
                             HTMLTable tableObjects,
                             IObjectModelRO model,
                             AActivitySpace parent)
Description copied from interface: IObjectViewHelper
Displays the object in 508 mode at the given index in the query result. This must be overridden by all subclasses.

Specified by:
Display508Object in interface IObjectViewHelper
Parameters:
nObjectIndex - nObjectIndex
tableObjects - tableObjects
See Also:
IObjectViewHelper.Display508Object(int, HTMLTable, IObjectModelRO, AActivitySpace)

DisplayJavascriptCollection

public HTMLScriptCollection DisplayJavascriptCollection(AActivitySpace asOwner,
                                                        IObjectModelRO model)
Description copied from interface: IObjectViewHelper
Returns the javascript for this view helper.

Specified by:
DisplayJavascriptCollection in interface IObjectViewHelper
Returns:
HTMLScriptCollection
See Also:
com.plumtree.portalpages.common.objects.IObjectViewHelper#DisplayJavascriptCollection()

DisplayObject

public void DisplayObject(int nObjectIndex,
                          int nRowIndex,
                          HTMLTable tableObjects,
                          IObjectModelRO model,
                          AActivitySpace asOwner)
Description copied from interface: IObjectViewHelper
Displays the object at the given index in the query result. This must be overridden by all subclasses. nRowIndex is used to determine which StyleClass to use.

Specified by:
DisplayObject in interface IObjectViewHelper
Parameters:
nObjectIndex - nObjectIndex
tableObjects - tableObjects
See Also:
com.plumtree.portalpages.common.objects.IObjectViewHelper#DisplayObject(int, HTMLTable)

SetExpandAnchor

public void SetExpandAnchor(HTMLAnchor anchor,
                            IObjectModelRO model)
Description copied from interface: IObjectViewHelper
This method is called by the ObjectView to fill out the anchor for the expand / collapse links on the object view header.

Specified by:
SetExpandAnchor in interface IObjectViewHelper
See Also:
com.plumtree.portalpages.common.objects.IObjectViewHelper#SetExpandButton(HTMLAnchor, IObjectModelRO)

GetSimpleMode

public boolean GetSimpleMode(IObjectModelRO _model)
This helper method gets whether or not we are in simple mode.

Parameters:
_model - the current model.
Returns:
whether or not we are in simple mode.



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