|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.htmlutil.HtmlUtil
HtmlUtil contains those methods needed to generate HTML pages.
Field Summary | |
static String |
ACTION_SOURCE
|
static String |
AMPERSAND_CHAR
Deprecated. |
static Object |
DISPLAY_IDENTIFIER_KEY
|
static String |
DOT_CHAR
Deprecated. |
static String |
ESC_GT
|
static String |
ESC_LT
|
static char |
GT
|
protected static String |
HTML_LOCALE_CHARSET_PROPERTY
|
static char |
LT
|
private static int |
MAX_LINE_SIZE
|
static String[][] |
MULTI_CHAR_SPL_CHAR_REPLACEMENT_MAPPING
Deprecated. |
static String |
PJL_ACTION_SOURCE
|
static String |
SCRIPT_START1
|
static String |
SCRIPT_START2
|
static String |
SCRIPT_START3
|
static String[][] |
SINGLE_CHAR_SPL_CHAR_REPLACEMENT_MAPPING
Deprecated. |
static String |
SINGLE_CHAR_SPL_CHARS
Deprecated. |
static String |
SPACE_CHAR
Deprecated. |
private static boolean |
TRAIL_ENABLED
|
private static String |
TRL_COMMENT
Deprecated. |
static String |
TRL_ID
Deprecated. |
static char |
UNDERSCORE_CHAR
Deprecated. |
static String |
UNIQUE_TAG_ID
Deprecated. |
static String |
UNIQUE_TAG_ID_SEPARATOR
Deprecated. |
static Locale |
US_ENGLISH_LOCALE
Deprecated. |
private static boolean |
VERBOSE
|
Fields inherited from interface wt.htmlutil.TrailIdConstants |
BUTTON_ICON_LINK, BUTTON_TEXT_LINK, ICON_LINK, ID_COMPONENT_SEPARATOR, ID_SPACE_CHAR, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_RADIO, INPUT_SUBMIT, INPUT_TEXT, LINK, NAV_LINK_BOTTOM, NAV_LINK_TOP, PDMLINK, SELECT, SELECT_OPTION, SUBNAV_LINK_BOTTOM, SUBNAV_LINK_TOP, TEXT_LINK, TEXTAREA, TRAIL_ID, WINDCHILL |
Constructor Summary | |
HtmlUtil()
|
Method Summary | |
static String |
addFormInput(String params,
String text)
Deprecated. |
static String |
addFormSelect(String params,
String text)
Deprecated. |
static String |
addFormSelectOption(String params,
String text)
Deprecated. |
static String |
addFormTextArea(String params,
String text)
Deprecated. |
static String |
addListItem(String text)
Deprecated. |
static String |
addListItem(String tag,
String text)
Deprecated. |
static String |
addTableEntry(String params,
String text)
Deprecated. |
static String |
addTableHeading(String params,
String text)
Deprecated. |
static String |
addTableRow(String params,
String text)
Deprecated. |
static String |
beginHtml(String title)
Deprecated. |
static String |
beginHtml(String title,
String resource)
Deprecated. |
static String |
beginStructure(String tag,
String params)
Deprecated. |
static String |
createAttributeValuePair(String attributeName,
String attributeValue)
Deprecated. |
static String |
createBase()
Deprecated. |
static void |
createBase(Properties p,
Locale l,
OutputStream os)
Deprecated. |
static String |
createBase(String base)
Deprecated. |
static void |
createBase(String base,
OutputStream os)
Deprecated. |
static String |
createBody(String resource)
Deprecated. |
static String |
createBody(String base,
String resource)
Deprecated. |
static void |
createCodebase(Properties p,
Locale l,
OutputStream os)
Deprecated. |
static String |
createFolderDropCBFuncs()
Deprecated. |
static void |
createFolderDropCBFuncs(Properties p,
Locale l,
OutputStream os)
Deprecated. |
static String |
createForm(String action,
String method,
String enctype,
String name,
String text)
Deprecated. |
static String |
createFrameset(String params,
String text)
Deprecated. |
static String |
createImageLink(String href,
String params,
String label,
String image)
Deprecated. |
static StringBuffer |
createInlineLink(StringBuffer href,
String params,
String label)
Creates an inline link (no carriage return) with the given information. |
static String |
createInlineLink(String href,
String params,
String label)
Deprecated. |
static String |
createLink(String href,
String params,
String label)
Deprecated. |
static String |
createList(String tag,
String params,
String text)
Deprecated. |
static void |
createLocale(Properties p,
Locale l,
OutputStream os)
Deprecated. |
static String |
createMainFuncs()
Deprecated. |
static String |
createPreformattedLink(String href,
String params,
String label,
int wrap)
Deprecated. |
static String |
createSelectHTML(String name,
String selectParam,
Vector values,
Vector displayValues,
boolean blank,
int selected)
Deprecated. |
static String |
createSelectHTML(String name,
String selectParam,
Vector values,
Vector displayValues,
Vector idValues,
boolean blank,
int selected)
Deprecated. |
static String |
createSelectHTML(String name,
String selectParam,
Vector values,
Vector displayValues,
Vector idValues,
boolean blank,
Vector selected)
Deprecated. |
static String |
createTable(String params,
String text)
Deprecated. |
static String |
createTagIDValuePair(String nameAttribute,
Class processorClass)
Deprecated. |
static String |
createTagIDValuePair(String nameAttribute,
String subSystemName)
Deprecated. |
static String |
createTrailId(String productPrefix,
String featureName,
String elementType,
String uniqueId)
Deprecated. |
static String |
createTrailId(String productPrefix,
String featureName,
String elementType,
WTObject obj)
Deprecated. |
static String |
createTrailObjId(WTObject obj)
Deprecated. |
static String |
createTrlComment(String comment)
Deprecated. |
static String |
createTrlIdAttribute(String productPrefix,
String featureName,
String elementType,
String uniqueId)
Deprecated. |
static String |
createTrlIdAttribute(String productPrefix,
String featureName,
String elementType,
WTObject obj)
Deprecated. |
static String |
createUniqueTagIDValue(String attributeName,
Class processorClass)
Deprecated. |
static String |
createUniqueTagIDValue(String attributeName,
String subSystemName)
Deprecated. |
static String |
defineFrame(String params,
String text)
Deprecated. |
static String |
encodeEscapeCharacters(String str)
Deprecated. |
static String |
encodeSpaces(String str)
Deprecated. |
static String |
endHtml()
Deprecated. |
static String |
endStructure(String tag)
Deprecated. |
static String |
fixString(String input)
Fixes strings that contain illegal HTML charaters. |
static String |
fixStringForJavaScript(String input)
For removing special characters e.g &,",>,<,'(single quote) from String before adding string to javascript. |
static String |
fixStringForJavaScriptInput(String input)
Use this method to fix strings to populate input fields via JavaScript. |
static String |
formatLayout(String tag,
boolean endtag,
String params,
String text)
Deprecated. |
static String |
formatText(String tag,
String text)
Deprecated. |
static String |
getDefaultEncoding()
Deprecated. |
static String |
getEncoding(Locale locale)
Deprecated. |
static String |
getEncoding(String locale_code)
Deprecated. |
static String |
getHTMLDisplayIdentifier(WTObject obj,
Locale locale)
Deprecated. |
static String |
getHTMLDisplayIdentity(WTObject obj,
Locale locale)
Deprecated. |
private static int |
getScriptIndex(int index,
String lowerValue)
|
static ArrayList |
getSelectedFromDCA(Properties formData)
|
static ArrayList |
getSelectedFromPartStructure(HTTPState state,
Properties formData)
|
private static ArrayList |
getSelectedFromPJL(Properties formData)
|
static ArrayList |
getSelectedObjects(HTTPState state,
Properties formData)
|
static String |
getSubSystemName(Class processorClass)
Deprecated. |
private static ArrayList |
getValuesFrom(Properties formData,
String keyString)
|
static String |
insertComment(String comment)
Deprecated. |
static String |
insertHeading(String tag,
String align,
String text)
Deprecated. |
static boolean |
isTrailEnabled()
|
static boolean |
isTrailEnabled(HTTPState state)
Determines if trail is enabled from the given HTTPState. |
static void |
printStackTrace(Throwable t)
Use this method to print an exception stack trace in HTML. |
static void |
printStackTrace(Throwable t,
PrintStream ps)
Use this method to print an exception stack trace in HTML. |
static void |
printStackTrace(Throwable t,
PrintWriter pw)
Use this method to print an exception stack trace in HTML. |
static String |
removeExtraNewLines(String str)
Deprecated. |
static String |
removeScripts(String value)
Escapes out the '<' and '>' characters of script calls in a String |
private static String |
replace(String[] chars,
String[] reps,
String input)
replaces chars found in input with corresponding reps. |
static String |
replaceIllegalTrailIdChars(String idString)
Deprecated. |
static String |
replaceMultiCharSplCharsInID(String uniqueId)
Deprecated. |
static String |
replaceSingleCharSplCharsInID(String uniqueId)
Deprecated. |
static String |
replaceSplCharsInID(String uniqueId)
Deprecated. |
static String |
replaceSubString(String uniqueId,
String oldToken,
String newToken,
int fromIndex)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String UNIQUE_TAG_ID_SEPARATOR
public static final String UNIQUE_TAG_ID
public static final String DOT_CHAR
public static final String SPACE_CHAR
public static final String AMPERSAND_CHAR
public static final String[][] SINGLE_CHAR_SPL_CHAR_REPLACEMENT_MAPPING
public static final String SINGLE_CHAR_SPL_CHARS
public static final String[][] MULTI_CHAR_SPL_CHAR_REPLACEMENT_MAPPING
public static final char UNDERSCORE_CHAR
public static final String TRL_ID
private static final String TRL_COMMENT
public static final Locale US_ENGLISH_LOCALE
public static final String SCRIPT_START1
public static final String SCRIPT_START2
public static final String SCRIPT_START3
public static final char GT
public static final char LT
public static final String ESC_GT
public static final String ESC_LT
private static final int MAX_LINE_SIZE
private static final boolean VERBOSE
private static final boolean TRAIL_ENABLED
public static final String ACTION_SOURCE
public static final String PJL_ACTION_SOURCE
public static final Object DISPLAY_IDENTIFIER_KEY
protected static final String HTML_LOCALE_CHARSET_PROPERTY
Constructor Detail |
public HtmlUtil()
Method Detail |
public static void printStackTrace(Throwable t)
t
- Throwable to get stack trace from.public static void printStackTrace(Throwable t, PrintStream ps)
t
- Throwable to get stack trace from.ps
- Specified print streampublic static void printStackTrace(Throwable t, PrintWriter pw)
t
- Throwable to get stack trace from.pw
- Specified print writer.public static String fixString(String input)
input
- String for HTML that needs to be checked and/or fixed
public static String fixStringForJavaScript(String input)
public static String fixStringForJavaScriptInput(String input)
private static String replace(String[] chars, String[] reps, String input)
chars
- Array of Strings to replace.reps
- Array of Strings that replace.input
- The input String to operate on.
public static String beginStructure(String tag, String params)
tag
- The HTML tag to use.params
- The optional parameters to use. Value may be null.
public static String endStructure(String tag)
tag
- The tag to use.
public static String formatLayout(String tag, boolean endtag, String params, String text)
tag
- The tag to use.endtag
- Indicates if an end tag should be generated.params
- Optional parameters to use. This value may be null.text
- The text being tagged.
public static String formatText(String tag, String text)
tag
- The tag to use. Note that both the beginning and end
tag will be generated. For example, given the value
"P" for tag, the output will look like: <P>text</P>.text
- The text to format.
public static String insertHeading(String tag, String align, String text)
tag
- The heading tag to use. For example, "H1".align
- The ALIGN value to use. Value may be null.text
- The heading text.
public static String beginHtml(String title)
title
- The string to put in the title
public static String beginHtml(String title, String resource)
title
- The string to put in the titleresource
- String containing the resource to append to the URL base specified
by the wt.server.codebase property.
public static String createBody(String base, String resource)
base
- The string containing the base URLresource
- The string containing the resource to append to the base.
public static String createBody(String resource)
resource
- String containing the resource to append to the URL base specified
by the wt.server.codebase property.
public static void createBase(String base, OutputStream os) throws WTRuntimeException
base
- The string containing the base URLos
- The outputStream to write to
WTRuntimeException
public static void createLocale(Properties p, Locale l, OutputStream os)
p
- Properties. Not used.l
- Locale.os
- The OutputStream to write to
public static void createCodebase(Properties p, Locale l, OutputStream os)
p
- Properties. Not used.l
- Locale. Not used.os
- The OutputStream to write to
public static void createBase(Properties p, Locale l, OutputStream os)
p
- Properties. Not used.l
- Locale. Not used.os
- The OutputStream to write to
public static String createBase(String base)
base
- The string containing the base URL
public static String createBase()
public static void createFolderDropCBFuncs(Properties p, Locale l, OutputStream os)
public static String createFolderDropCBFuncs() throws Exception
Exception
public static String createMainFuncs() throws Exception
Exception
public static String endHtml()
public static String insertComment(String comment)
comment
- String containing the comment to insert.
Comment will be broken into maximum 80 character lines.
public static String createForm(String action, String method, String enctype, String name, String text)
action
- The URL to call when the form is submitted.method
- The method to associate with the FORM; e.g. GET or POST.enctype
- The value application.name
- The name associated with the form. Used by JavaScript scripts.text
- The string containing the form contents.
public static String addFormInput(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the INPUT contents.
public static String addFormTextArea(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the TEXTAREA contents.
public static String addFormSelect(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the SELECT contents.
public static String addFormSelectOption(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the OPTION contents.
public static String createFrameset(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the frameset contents.
public static String defineFrame(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the frame contents.
public static String createLink(String href, String params, String label)
href
- The URL to call when link is selected.params
- Other parameters for the link; e.g. REL=xxx.label
- Label to associate with the link.
public static String createImageLink(String href, String params, String label, String image)
href
- The URL to call when link is selected.params
- Other parameters for the link; e.g. REL=xxx.label
- Label to associate with the link.image
- Image to create a link for; e.g. public static String createInlineLink(String href, String params, String label)
href
- The URL to call when link is selected.params
- Other parameters for the link; e.g. REL=xxx.label
- Label to associate with the link.
public static StringBuffer createInlineLink(StringBuffer href, String params, String label)
href
- The URL to call when link is selected.params
- Other parameters for the link; e.g. REL=xxx.label
- Label to associate with the link.
public static String createPreformattedLink(String href, String params, String label, int wrap)
href
- The URL to call when link is selected.params
- Other parameters for the link; e.g. REL=xxx.label
- Label to associate with the link.wrap
- The URL wrap length.
public static String createList(String tag, String params, String text)
tag
- The tag to use.params
- Optional parameters to use. Value may be null.text
- The contents of the list.
public static String addListItem(String text)
text
- The text to add to the list.
public static String addListItem(String tag, String text)
tag
- The tag to use. If not specified, defaults to "LI".text
- The text to add to the list.
public static String createTable(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the table contents.
public static String addTableRow(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the row contents.
public static String addTableHeading(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the heading.
public static String addTableEntry(String params, String text)
params
- Optional parameters to use. Value may be null.text
- The string containing the entry contents.
public static String createSelectHTML(String name, String selectParam, Vector values, Vector displayValues, boolean blank, int selected)
name
- String name of the element in the HTML form.selectParam
- Additional SELECT parameters such as SIZE or onChange. ex: "SIZE=\"5\" onChange=javasript:method()"values
- Vector that contains the form values that correspond to the displayValue vector.displayValues
- Vector that contains the display values visible in the HTML drop down.blank
- Do you wish to have a blank prepended to the list of values? Note: Setting this to "true" will add one to the list's size. Remember this when setting the "default" param.selected
- int that corresponds to the default selected value in the drop-down.
public static String createSelectHTML(String name, String selectParam, Vector values, Vector displayValues, Vector idValues, boolean blank, int selected)
name
- String name of the element in the HTML form.selectParam
- Additional SELECT parameters such as SIZE or onChange. ex: "SIZE=\"5\" onChange=javasript:method()"values
- Vector that contains the form values that correspond to the displayValue vector.displayValues
- Vector that contains the display values visible in the HTML drop down.idValues
- Vector that contains the id values for the drop down entries. If null default ids are generated for the options.blank
- Do you wish to have a blank prepended to the list of values? Note: Setting this to "true" will add one to the list's size. Remember this when setting the "default" param.selected
- int that corresponds to the default selected value in the drop-down.
public static String createSelectHTML(String name, String selectParam, Vector values, Vector displayValues, Vector idValues, boolean blank, Vector selected)
name
- String name of the element in the HTML form.selectParam
- Additional SELECT parameters such as SIZE or onChange. ex: " SIZE=\"5\ " If you want the list to
Allow Multiselect include the multiselect option here. ex. " SIZE=\"5\" multiple "values
- Vector that contains the form values that correspond to the displayValue vector.displayValues
- Vector that contains the display values visible in the HTML drop down.idValues
- Vector that contains the id values for the drop down entries. If null default ids are generated for the options.blank
- Do you wish to have a blank prepended to the list of values? Note: Setting this to "true" will add one to the list's size. Remember this when setting the "default" param.selected
- Vector that contains the indices or the value strings for the default selected value(s) in the drop-down.
public static String createAttributeValuePair(String attributeName, String attributeValue)
public static String createUniqueTagIDValue(String attributeName, String subSystemName)
public static String createUniqueTagIDValue(String attributeName, Class processorClass)
public static String getSubSystemName(Class processorClass)
public static String createTagIDValuePair(String nameAttribute, String subSystemName)
public static String createTagIDValuePair(String nameAttribute, Class processorClass)
public static String replaceSplCharsInID(String uniqueId)
public static String replaceMultiCharSplCharsInID(String uniqueId)
public static String replaceSubString(String uniqueId, String oldToken, String newToken, int fromIndex)
public static String replaceSingleCharSplCharsInID(String uniqueId)
public static String encodeSpaces(String str)
str
- String to be processed
public static final String encodeEscapeCharacters(String str)
str
- The string to encode
public static String getHTMLDisplayIdentifier(WTObject obj, Locale locale)
obj
- objectlocale
- locale for localization of output string
public static String getHTMLDisplayIdentity(WTObject obj, Locale locale)
obj
- objectlocale
- locale for localization of output string
public static String createTrailObjId(WTObject obj)
These strings are designed to be used in trail file ids so the only characters allowed are ['A'..'Z'], ['a'..'z'], ['0'..'9'],'-', '_', and ':'. All other characters, except spaces, will be replaced by the sequence '_uD[DDD]_' where 'D[DDD]' is the 1- to 4-digit unicode hex representation of the character. Space characters are replaced by a '_'.
Example id string: "Part_9553485454__u28_BRGSHAFT_u29__A_1"
public static String createTrailId(String productPrefix, String featureName, String elementType, String uniqueId)
<product prefix>:<feature name>:<element type>:<unique id>
where:
Any of the above four components may be missing from an id, although ids with all four are preferred wherever possible. Each of the four elements in the ID is input as a parameter to this method. Any that are missing will be excluded from the ID. If all are missing, an empty string will be returned.
We recommend that the total number of characters in all four components not exceed 65 characters (one trail file line) for trail file readability.
NOTE: We recommend that trail id components include only letter characters [A..Z,a..z], digit characters [0..9], and hyphens('-'). This will avoid usage of chars with special meanings and illegal id characters. Illegal characters will be escaped by the sequence '_uD[DDD]_' where 'D[DDD]' is the 1- to 4-digit hex representation of the character. See the method replaceIllegalTrailIdChars().
Sample ids:
PDML:MoreSearchOptions:TextLink:r8h47
PDML:Tools:DropDown:98735
Tools:DropDown
PDML:ProductStructureTable:Checkbox:Part_9553485454__u28_BRGSHAFT_29__A_1
Supported API: false
public static String createTrailId(String productPrefix, String featureName, String elementType, WTObject obj)
<product prefix>:<feature name>:<element type>:<object id>
where:
Any of the above four components may be missing from an id, although ids with all four are preferred wherever possible. Each of the four elements in the ID is input as a parameter to this method. Any that are missing will be excluded from the ID. If all are missing, an empty string will be returned.
We recommend that the total number of characters in all four components not exceed 65 characters (one trail file line) for trail file readability.
NOTE: We recommend that trail id components include only letter characters [A..Z,a..z], meanings and illegal id characters. Illegal characters will be escaped by the sequence '_uD[DDD]_' where 'D[DDD]' is the 1- to 4-digit hex representation of the character. See the method replaceIllegalTrailIdChars().
Example id: "PDML:ProductStructureTable:Checkbox:Part_9553485454__u28_BRGSHAFT_u29__A_1"
public static String replaceIllegalTrailIdChars(String idString)
Legal id characters are ['A'..'Z'], ['a'..'z'], ['0'..'9'],'-', '_', and ':'. All others, except for spaces, will be replaced by the sequence '_uD[DDD]_' where 'D[DDD]' is the 1- to 4-digit unicode hex representation of the character. Spaces will be replaced by an underscore ('_').
Example:
input id string: "Part_9553485454_(BRGSHAFT)_A_1"
output id string: "Part_9553485454__u0028_BRGSHAFT_u0029__A_1"
public static String createTrlIdAttribute(String productPrefix, String featureName, String elementType, String uniqueId)
trlId=<product prefix>:<feature name>:<element type>:<unique id>
where:
Any of the above four components may be missing from a trlId, although trlIds with all four are preferred wherever possible. Each of the four elements in the trlId is input as a parameter to this method. Any that are missing will be excluded from the trlId. If all are missing, an empty string will be returned.
We recommend that the total number of characters in all four components not exceed 65 characters (one trail file line) for trail file readability.
NOTE: We recommend that trlId attributes include only letter characters [A..Z,a..z], digit characters [0..9], and hyphens('-'). This will avoid usage of chars with special meanings and illegal id characters. Illegal characters will be escaped by the sequence '_uD[DDD]_' where 'D[DDD]' is the 1- to 4-digit hex representation of the character. See the method replaceIllegalTrailIdChars().
Sample trlId attributes:
trlId=PDML:MoreSearchOptions:TextLink:r8h47
trlId=PDML:Tools:DropDown:98735
trlId=Tools:DropDown
trlId=PDML:ProductStructureTable:Checkbox:Part_9553485454__u28_BRGSHAFT_29__A_1
Supported API: false
public static String createTrlIdAttribute(String productPrefix, String featureName, String elementType, WTObject obj)
trlId=<product prefix>:<feature name>:<element type>:<unique id>
where:
Any of the above four components may be missing from a trlId, although trlIds with all four are preferred wherever possible. Each of the four elements in the trlId is input as a parameter to this method. Any that are missing will be excluded from the trlId. If all are missing, an empty string will be returned.
We recommend that the total number of characters in all four components not exceed 65 characters (one trail file line) for trail file readability.
NOTE: We recommend that trlId attributes include only letter characters [A..Z,a..z], digit characters [0..9], and hyphens('-'). This will avoid usage of chars with special meanings and illegal id characters. Illegal characters will be escaped by the sequence '_uD[DDD]_' where 'D[DDD]' is the 1- to 4-digit hex representation of the character. See the method replaceIllegalTrailIdChars().
Sample trlId attribute: "trlId=PDML:ProductStructureTable:Checkbox:Part_9553485454__u28_BRGSHAFT_29__A_1"
Supported API: false
public static String createTrlComment(String comment)
Returns a trlComment attribute like: TRLCOMMENT="Set Local Time Zone"
Will show up in the trail file as a comment like: !TrlCmnt: Clicked on element 'Set Local Time Zone'
Note: This method always returns a trail comment string, regardless of whether or not trail is enabled.
In some cases it may be more performant to check if trail is enabled before adding a trlComment/trlId.
Use isTrailEnabled() to check if trail is enabled.
Supported API: false
public static boolean isTrailEnabled(HTTPState state)
public static boolean isTrailEnabled()
public static ArrayList getSelectedObjects(HTTPState state, Properties formData) throws WTException
WTException
private static ArrayList getSelectedFromPJL(Properties formData) throws WTException
WTException
public static ArrayList getSelectedFromDCA(Properties formData) throws WTException
WTException
public static ArrayList getSelectedFromPartStructure(HTTPState state, Properties formData) throws WTException
WTException
private static ArrayList getValuesFrom(Properties formData, String keyString)
public static String removeExtraNewLines(String str)
public static String getDefaultEncoding()
HTML_LOCALE_CHARSET_PROPERTY
.
This method should be called to get the encoding value to set in an HTML file.
To get the encoding of a file being read (e.g., .rbInfo or .ser file), use
wt.util.LocaleUtilities.
LocaleUtilities
public static String getEncoding(String locale_code)
HTML_LOCALE_CHARSET_PROPERTY
.
This method should be called to get the encoding value to set in an HTML file.
To get the encoding of a file being read (e.g., .rbInfo or .ser file), use
wt.util.LocaleUtilities.
locale_code
- - the locale code for which encoding is needed
LocaleUtilities
public static String getEncoding(Locale locale)
HTML_LOCALE_CHARSET_PROPERTY
.
This method should be called to get the encoding value to set in an HTML file.
To get the encoding of a file being read (e.g., .rbInfo or .ser file), use
wt.util.LocaleUtilities.
locale
- - the Locale for which encoding is needed
LocaleUtilities
public static String removeScripts(String value)
private static int getScriptIndex(int index, String lowerValue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |