|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.uiinfrastructure.statichelpers.AnchorInLocalizedString
public class AnchorInLocalizedString
This class is used to insert anchors in localized strings using placeholders. Strings should have placeholders {0} and {1} around the section that should be turned into a link. This class does not handle escaped placeholders (\\{0}).
| Constructor Summary | |
|---|---|
AnchorInLocalizedString()
|
|
| Method Summary | |
|---|---|
static void |
AddAnchorInStringToElement(java.lang.String strBaseText,
java.lang.String strURL,
HTMLElement element)
This method takes the string with the anchor element inserted between the {0} and {1} placeholders and adds it to the given element. |
static HTMLAnchor |
GetAnchor(java.lang.String strBaseText,
java.lang.String strURL)
This method returns the HTMLAnchor generated from the section of the string between the {0} and {1} placeholders. |
static HTMLElementCollection |
GetAnchorInString(java.lang.String strBaseText,
java.lang.String strURL)
This method returns an HTMLElementCollection containing the string with the anchor element inserted between the {0} and {1} placeholders. |
static java.lang.String |
GetStringAfterAnchor(java.lang.String strBaseText)
This method returns the section of the string after the place holder. |
static java.lang.String |
GetStringBeforeAnchor(java.lang.String strBaseText)
This method returns the section of the string before the place holder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnchorInLocalizedString()
| Method Detail |
|---|
public static java.lang.String GetStringBeforeAnchor(java.lang.String strBaseText)
String - the entire localized string
public static java.lang.String GetStringAfterAnchor(java.lang.String strBaseText)
String - the entire localized string
public static HTMLAnchor GetAnchor(java.lang.String strBaseText,
java.lang.String strURL)
String - the entire localized stringString - the URL of the anchor
public static HTMLElementCollection GetAnchorInString(java.lang.String strBaseText,
java.lang.String strURL)
String - the entire localized stringString - the URL of the anchor
public static void AddAnchorInStringToElement(java.lang.String strBaseText,
java.lang.String strURL,
HTMLElement element)
String - the entire localized stringString - the URL of the anchorHTMLElement - the element to add the String with the anchor generated from the text inbetween {0} and {1}
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||