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

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

public class BundleSelectionViewHelper
extends java.lang.Object
implements IObjectViewHelper

Author:
michaeld

Field Summary
static java.lang.String HTMLINPUT_BUNDLE_ASID_PREFIX
          HTML Input Hidden: Portlet Bundle AS ID Prefix - add bundle id to the end of this
static java.lang.String HTMLINPUT_CURRENT_BUNDLE
          HTML Input Hidden: Currently open bundle
static java.lang.String HTMLINPUT_SELECT_BUNDLE
          HTML Input Hidden: Select this bundle
static java.lang.String HTMLINPUT_SELECTION_OBJECT
          HTML Input Checkbox
static java.lang.String JAVASCRIPT_ONRETURN_ADDPORTLETS_FROMBUNDLE
          Javascript Function: ORaddPortletsFromBundle
static java.lang.String JAVASCRIPT_OPEN_BUNDLE
          Javascript Function: openBundle
static java.lang.String JAVASCRIPT_SELECT_BUNDLE
          Javascript Function: selectBundle
static java.lang.String SELECTION_HEADER
          Selection Header
 
Constructor Summary
BundleSelectionViewHelper()
           
 
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.
 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

SELECTION_HEADER

public static final java.lang.String SELECTION_HEADER
Selection Header

See Also:
Constant Field Values

HTMLINPUT_BUNDLE_ASID_PREFIX

public static final java.lang.String HTMLINPUT_BUNDLE_ASID_PREFIX
HTML Input Hidden: Portlet Bundle AS ID Prefix - add bundle id to the end of this

See Also:
Constant Field Values

HTMLINPUT_CURRENT_BUNDLE

public static final java.lang.String HTMLINPUT_CURRENT_BUNDLE
HTML Input Hidden: Currently open bundle

See Also:
Constant Field Values

HTMLINPUT_SELECT_BUNDLE

public static final java.lang.String HTMLINPUT_SELECT_BUNDLE
HTML Input Hidden: Select this bundle

See Also:
Constant Field Values

JAVASCRIPT_OPEN_BUNDLE

public static final java.lang.String JAVASCRIPT_OPEN_BUNDLE
Javascript Function: openBundle

See Also:
Constant Field Values

JAVASCRIPT_ONRETURN_ADDPORTLETS_FROMBUNDLE

public static final java.lang.String JAVASCRIPT_ONRETURN_ADDPORTLETS_FROMBUNDLE
Javascript Function: ORaddPortletsFromBundle

See Also:
Constant Field Values

JAVASCRIPT_SELECT_BUNDLE

public static final java.lang.String JAVASCRIPT_SELECT_BUNDLE
Javascript Function: selectBundle

See Also:
Constant Field Values
Constructor Detail

BundleSelectionViewHelper

public BundleSelectionViewHelper()
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(AActivitySpace)

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, IObjectModelRO, AActivitySpace)

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)



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