com.plumtree.xpshared.htmlconstructs
Class ConstructFactory

java.lang.Object
  extended by com.plumtree.xpshared.htmlconstructs.ConstructFactory

public class ConstructFactory
extends java.lang.Object

Author:
beng Use this class to obtain PTConstruct objects.

Objects of this class cannot be instantiated. This class only provides a static method for obtaining instances of PTConstruct objects.

Method Summary
static PTConstruct GetConstruct(PTConstructType type)
          Call this method to obtain a PTConstruct.
static PTConstruct GetConstruct(PTConstructType type, boolean bUpdateStrings)
          Call this method to obtain a PTConstruct.
static void SetAltOnButtonImages(PTConstruct construct, java.lang.String sAlt)
          Call this method to set the alt attribute values on the images included within a construct that is one of PTButtonType constructs.
static void SetTitleOnButtonImages(PTConstruct construct, java.lang.String sTitle)
          Call this method to set the title attribute values on the images included within a construct that is one of PTButtonType constructs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

GetConstruct

public static PTConstruct GetConstruct(PTConstructType type)
Call this method to obtain a PTConstruct.

Parameters:
type - Pass the type of construct you wish to obtain. Construct types are available as static members of the various PTConstructType classes.
Returns:

GetConstruct

public static PTConstruct GetConstruct(PTConstructType type,
                                       boolean bUpdateStrings)
Call this method to obtain a PTConstruct.

Parameters:
type - Pass the type of construct you wish to obtain. Construct types are available as static members of the various PTConstructType classes.

bUpdateStrings - Pass a boolean value indicating whether or not you wish for the strings of this banner to be updated automatically. If you pass true, all appropriate strings will be replaced with localized versions. If you pass false, all strings will be left with they prototypical values. You can update the strings yourself, using the string dictionary returned by the PTBannerType.GetStringDictionary method.
Returns:

SetAltOnButtonImages

public static void SetAltOnButtonImages(PTConstruct construct,
                                        java.lang.String sAlt)
Call this method to set the alt attribute values on the images included within a construct that is one of PTButtonType constructs.

Parameters:
construct - Pass a construct obtained with a PTButtonType
sAlt - Pass a String alt attribute value

SetTitleOnButtonImages

public static void SetTitleOnButtonImages(PTConstruct construct,
                                          java.lang.String sTitle)
Call this method to set the title attribute values on the images included within a construct that is one of PTButtonType constructs.

Parameters:
construct - Pass a construct obtained with a PTButtonType
sTitle - Pass a String alt attribute value



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