com.plumtree.taskapi.portalui
Class TaskAPIUIHTML

java.lang.Object
  extended by com.plumtree.taskapi.portalui.TaskAPIUIHTML

public class TaskAPIUIHTML
extends java.lang.Object

HTML Related TaskAPI functions.


Constructor Summary
TaskAPIUIHTML()
           
 
Method Summary
static void CreateHorizontalSpacerCell(HTMLTableRow myTableRow)
          Adds a spacer cell with a cell width of 4to the specified HTMLTableRow
static HTMLImg GetImageConstruct(AActivitySpace owner, PTConstructType construct)
          Gets an HTML Image element for the specified Plumtree Image Construct.
static HTMLImg GetSpacerImage(java.lang.String strWidth, java.lang.String strHeight)
          Gets a blank spacer image element with the specified width and height.
static java.lang.String HTMLDecode(java.lang.String strValue)
          Returns a decoded version of the input string, assuming it was a valid HTML encoding.
static java.lang.String HTMLEncode(java.lang.String strValue)
          Returns an HTML-encoded version of the input string, or empty string if input is null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskAPIUIHTML

public TaskAPIUIHTML()
Method Detail

CreateHorizontalSpacerCell

public static void CreateHorizontalSpacerCell(HTMLTableRow myTableRow)
Adds a spacer cell with a cell width of 4to the specified HTMLTableRow

Parameters:
myTableRow - HTMLTableRow to add the spacer cell to

GetImageConstruct

public static HTMLImg GetImageConstruct(AActivitySpace owner,
                                        PTConstructType construct)
Gets an HTML Image element for the specified Plumtree Image Construct.

Parameters:
owner - Current Activityspace.
construct - A Plumtree Image Construct.
Returns:
HTML img element created from the Plumtree Image Construct object.

GetSpacerImage

public static HTMLImg GetSpacerImage(java.lang.String strWidth,
                                     java.lang.String strHeight)
Gets a blank spacer image element with the specified width and height.

Parameters:
strWidth - Width value that goes directly into the width attribute in the HTML img element.
strHeight - Height value that goes directly into the width attribute in the HTML img element.
Returns:
HTMLImg element with a spacer image in the specified width and height.

HTMLEncode

public static java.lang.String HTMLEncode(java.lang.String strValue)
Returns an HTML-encoded version of the input string, or empty string if input is null.

Parameters:
strValue - a string of characters to encode for use as HTML text.
Returns:
an encoded version of the input, or empty string if null.

HTMLDecode

public static java.lang.String HTMLDecode(java.lang.String strValue)
Returns a decoded version of the input string, assuming it was a valid HTML encoding.

Parameters:
strValue - the string to decode.
Returns:
a decoded version of the input.
Throws:
XPNullPointerException - if input is null.
XPUnsupportedEncodingException - if an invalid ampersand escape is found.



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