com.plumtree.portalpages.portlets.userprofile.infrastructure
Class HTMLHelper

java.lang.Object
  extended by com.plumtree.portalpages.portlets.userprofile.infrastructure.HTMLHelper

public class HTMLHelper
extends java.lang.Object

Author:
dand This is a helper class designed to help draw some common elements for portlets

Field Summary
static java.lang.String BLANK_URL
          string for a blank URL
protected static java.lang.String CLASSID_TAG
           
protected static java.lang.String MODE_TAG
           
protected static java.lang.String OBJECTID_TAG
           
protected static java.lang.String PTOPENERLINK_END
           
protected static java.lang.String PTOPENERLINK_START
           
protected static java.lang.String SINGLEQUOTE
           
 
Constructor Summary
HTMLHelper()
           
 
Method Summary
static ProfileCell CreateProfileRowFromPTResults(AActivitySpace aspace, IPTQueryResult searchResponse, int index, int Classid)
          This method will return a standard introspective portlet cell based on a Plumtree ASQueryResultWrapper object.
static ProfileCell CreateProfileRowFromPTResults(AActivitySpace aspace, IPTSearchResponse searchResponse, int index)
          This method will return a standard introspective portlet cell based on a Plumtree IPTSearchResponse object.
static HTMLElement GetHeaderView(java.lang.String _sHeaderTitle)
          Returns the header for the Section.
static HTMLAnchor GetObjectOpenerTag(AActivitySpace aspace, java.lang.String name, int classid, int objectid)
          Returns a pttag that sould create an appropriate URL to open a plumtree object
static HTMLTable GetShortSpacerTable()
          Returns a short empty table.
static HTMLTable GetSpacerTable()
          Returns an empty table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PTOPENERLINK_START

protected static final java.lang.String PTOPENERLINK_START
See Also:
Constant Field Values

PTOPENERLINK_END

protected static final java.lang.String PTOPENERLINK_END
See Also:
Constant Field Values

OBJECTID_TAG

protected static final java.lang.String OBJECTID_TAG
See Also:
Constant Field Values

CLASSID_TAG

protected static final java.lang.String CLASSID_TAG
See Also:
Constant Field Values

MODE_TAG

protected static final java.lang.String MODE_TAG
See Also:
Constant Field Values

SINGLEQUOTE

protected static final java.lang.String SINGLEQUOTE
See Also:
Constant Field Values

BLANK_URL

public static final java.lang.String BLANK_URL
string for a blank URL

See Also:
Constant Field Values
Constructor Detail

HTMLHelper

public HTMLHelper()
Method Detail

CreateProfileRowFromPTResults

public static ProfileCell CreateProfileRowFromPTResults(AActivitySpace aspace,
                                                        IPTQueryResult searchResponse,
                                                        int index,
                                                        int Classid)
                                                 throws HTMLException
This method will return a standard introspective portlet cell based on a Plumtree ASQueryResultWrapper object. It should get the name, description, and create a common opener java script function based on the object class id and object id.

Parameters:
searchResponse - THe search result object containing all the data
index - the index row of the search result
Classid -
Returns:
ProfileCell a introspective ProfileCell that will be displayed
Throws:
HTMLException

CreateProfileRowFromPTResults

public static ProfileCell CreateProfileRowFromPTResults(AActivitySpace aspace,
                                                        IPTSearchResponse searchResponse,
                                                        int index)
                                                 throws HTMLException
This method will return a standard introspective portlet cell based on a Plumtree IPTSearchResponse object. It should get the name, description, and create a common opener java script function based on the object class id and object id.

Parameters:
searchResponse - THe search result object containing all the data
index - the index row of the search result
Returns:
ProfileCell a introspective ProfileCell that will be displayed
Throws:
HTMLException

GetHeaderView

public static HTMLElement GetHeaderView(java.lang.String _sHeaderTitle)
Returns the header for the Section.

Parameters:
_sHeaderTitle - Title you want to display in the header.
Returns:
HTMLTable

GetObjectOpenerTag

public static HTMLAnchor GetObjectOpenerTag(AActivitySpace aspace,
                                            java.lang.String name,
                                            int classid,
                                            int objectid)
                                     throws HTMLException
Returns a pttag that sould create an appropriate URL to open a plumtree object

Parameters:
name -
classid - the classid of the plumtree object
objectid - the Plumtree object id
Returns:
the javascript function that opens a common plumtree object
Throws:
HTMLException

GetShortSpacerTable

public static HTMLTable GetShortSpacerTable()
Returns a short empty table. This is the one you should use in your Section, just below the Section header (the one returned by GetHeaderView)

Returns:
HTMLTable

GetSpacerTable

public static HTMLTable GetSpacerTable()
Returns an empty table. This is the one used to separate each section in any Editor page. Note that this is a static method so you can also call it from any DP.

Returns:
HTMLTable



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