com.isti.util
Class HtmlUtilFns

java.lang.Object
  extended bycom.isti.util.HtmlUtilFns

public class HtmlUtilFns
extends java.lang.Object

Class HtmlUtilFns contains various static HTML utility methods.


Field Summary
static java.lang.String BOLD_ELEMENT
          Bold element.
static java.lang.String COLOR_ATTRIBUTE
          Color attribute.
static java.lang.String FONT_ELEMENT
          Font element.
static java.lang.String HTML_ELEMENT
          HTML element.
 
Method Summary
static java.lang.String getColorAttributeText(java.awt.Color color)
          Gets the font color text.
static java.lang.String getFontText(java.lang.String s, java.awt.Color color)
          Gets the font text for the specified color.
static java.lang.String getHtmlText(java.lang.String s)
          Gets the html text by adding the HTML elements if needed.
static java.lang.String getText(java.lang.String s, java.lang.String element)
          Gets the text with the specified element.
static java.lang.String getText(java.lang.String s, java.lang.String element, java.lang.String attributeText)
          Gets the text with the specified element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOLD_ELEMENT

public static final java.lang.String BOLD_ELEMENT
Bold element.

See Also:
Constant Field Values

COLOR_ATTRIBUTE

public static final java.lang.String COLOR_ATTRIBUTE
Color attribute.

See Also:
Constant Field Values

FONT_ELEMENT

public static final java.lang.String FONT_ELEMENT
Font element.

See Also:
Constant Field Values

HTML_ELEMENT

public static final java.lang.String HTML_ELEMENT
HTML element.

See Also:
Constant Field Values
Method Detail

getColorAttributeText

public static java.lang.String getColorAttributeText(java.awt.Color color)
Gets the font color text.

Parameters:
color - the color or null if none.
Returns:
the font color text or null if none.

getFontText

public static java.lang.String getFontText(java.lang.String s,
                                           java.awt.Color color)
Gets the font text for the specified color.

Parameters:
s - the text or null if none.
color - the color or null if none.
Returns:
the font text.

getHtmlText

public static java.lang.String getHtmlText(java.lang.String s)
Gets the html text by adding the HTML elements if needed.

Parameters:
s - the text or null if none.
Returns:
the html text or null if none.

getText

public static java.lang.String getText(java.lang.String s,
                                       java.lang.String element)
Gets the text with the specified element.

Parameters:
s - the text or null if none.
element - the element (such as BOLD_ELEMENT) or null if none.
Returns:
the text with the specified element text.

getText

public static java.lang.String getText(java.lang.String s,
                                       java.lang.String element,
                                       java.lang.String attributeText)
Gets the text with the specified element.

Parameters:
s - the text or null if none.
element - the element (such as BOLD_ELEMENT) or null if none.
attributeText - the attribute text or null if none.
Returns:
the text with the specified element text.