com.plumtree.portalpages.admin.objmgr
Class ObjMgrViewHelper

java.lang.Object
  extended by com.plumtree.portalpages.admin.objmgr.ObjMgrViewHelper
All Implemented Interfaces:
IObjectViewHelper

public class ObjMgrViewHelper
extends java.lang.Object
implements IObjectViewHelper

Author:
Don Hayler This displays IPTObjects.

Field Summary
static java.lang.String HTML_OBJECT_CHECKBOX_PREFIX
          checkbox prefix
static java.lang.String HTML_OBJECT_CHECKBOX_SUFFIX
          checkbox suffix
static java.lang.String HTML_OBJECT_HIDDEN_SUBTYPE
          hidden subtype
 
Constructor Summary
ObjMgrViewHelper()
           
 
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 parent)
          Displays the object at the given index in the query result.
 java.lang.String GetDateString(java.lang.Object dateObject, XPDateFormat xpDateTimeFormat, java.lang.String strDateName)
          This helper function translates date objects into localized date strings.
 java.lang.String GetStatusString(int intStatus, AActivitySpace asOwner)
          This helper function translates PT_JOBSTATUS numbers into localized string values
 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

HTML_OBJECT_CHECKBOX_PREFIX

public static final java.lang.String HTML_OBJECT_CHECKBOX_PREFIX
checkbox prefix

See Also:
Constant Field Values

HTML_OBJECT_CHECKBOX_SUFFIX

public static final java.lang.String HTML_OBJECT_CHECKBOX_SUFFIX
checkbox suffix

See Also:
Constant Field Values

HTML_OBJECT_HIDDEN_SUBTYPE

public static final java.lang.String HTML_OBJECT_HIDDEN_SUBTYPE
hidden subtype

See Also:
Constant Field Values
Constructor Detail

ObjMgrViewHelper

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

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)

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)

DisplayObject

public void DisplayObject(int nObjectIndex,
                          int nRowIndex,
                          HTMLTable tableObjects,
                          IObjectModelRO model,
                          AActivitySpace parent)
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)

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)

GetDateString

public java.lang.String GetDateString(java.lang.Object dateObject,
                                      XPDateFormat xpDateTimeFormat,
                                      java.lang.String strDateName)
This helper function translates date objects into localized date strings.

Parameters:
Object - the date object
XPDateFormat - the localized date format object
String - the name of the date to display in an error message if the date cannot be converted correctly.
Returns:
String the localized date string. "" if couldn't convert object.

GetStatusString

public java.lang.String GetStatusString(int intStatus,
                                        AActivitySpace asOwner)
This helper function translates PT_JOBSTATUS numbers into localized string values




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