com.plumtree.uiinfrastructure.htmlconstructs
Class UIFactoryHelper
java.lang.Object
com.plumtree.xpshared.htmlconstructs.FactoryHelper
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UIFactoryHelper
public UIFactoryHelper()
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 PTConstructTypeconstruct
- 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.