com.plumtree.uiinfrastructure.htmlconstructs
Class UIFactoryHelper

java.lang.Object
  extended by com.plumtree.xpshared.htmlconstructs.FactoryHelper
      extended by com.plumtree.uiinfrastructure.htmlconstructs.UIFactoryHelper

public class UIFactoryHelper
extends FactoryHelper

Author:
Ben Geislinger This class implements functionality used by various classes in this package. This functionality is not intended for public use.

Constructor Summary
UIFactoryHelper()
           
 
Method Summary
static void updateImgAlts(PTConstruct construct)
           
static void updateImgAlts(PTConstruct construct, AActivitySpace activitySpace)
          This method updates HTMLImg objects nested within a construct.
static void updateStrings(PTConstruct construct)
           
static void updateStrings(PTConstruct construct, AActivitySpace activitySpace)
          This method updates all of the appropriate strings within a construct with localized versions of those strings.
 
Methods inherited from class com.plumtree.xpshared.htmlconstructs.FactoryHelper
combineMaps, combineStringDictionaries, combineStringDictionaries, XPDictionaryToTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIFactoryHelper

public UIFactoryHelper()
Method Detail

updateImgAlts

public static void updateImgAlts(PTConstruct construct)
Parameters:
construct -

updateImgAlts

public static void updateImgAlts(PTConstruct construct,
                                 AActivitySpace activitySpace)
This method updates HTMLImg objects nested within a construct. The alt attribute of each updated HTMLImg object is set to the localized String.

Parameters:
t - Pass a PTConstructType
construct - Pass a PTConstruct

updateStrings

public static void updateStrings(PTConstruct construct)
Parameters:
construct -

updateStrings

public static void updateStrings(PTConstruct construct,
                                 AActivitySpace activitySpace)
This method updates all of the appropriate strings within a construct with localized versions of those strings.

Each construct offers a StrinDictionary containing ElementName/stringid pairs. The ElementName indicates a nested HTMLElement object, the string id indicates a localized string.

This method obtains each nested element indicated by the set of ElementName objects. If that nested HTMLElement is an HTMLGenericElement, then it is replaced with the corresponding localized string. If the nested element is any other type of HTMLElement object, the corresponding localized string is nested within the nested element.

Parameters:
t - Pass a PTConstructType. This type will be used to obtain a string dictionary describing which internal htmlelements need to be updated.

construct - Pass a PTConstruct. Nested elements with names equivalent to those specified by the string dictionary will be updated.



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