| java.lang.Object org.openuss.utility.EnhydraPresentationUtility
EnhydraPresentationUtility | public class EnhydraPresentationUtility (Code) | | Utility for classes.
author: B. Lofi Dewanto version: 1.0 |
Method Summary | |
public static void | bodySetter(NodeList list, String bodyBgColor, String bodyLink, String bodyALink, String bodyVLink) | public static void | cellSetter(NodeList list, String tableBgColor) | public static Vector | checkStartIndexAndCount(String startIndexStr, String countStr, int listAmount) Checks the startIndex and Count. | public static void | fontSetter(NodeList list, String fontFace, String fontSize, String fontColor) | public static Element | formatTextToHtml(String inputText, HTMLObjectImpl inputPage, int width) Format a normal text to html. | public static String | formatTextToWidth(String inputText, int width) Format a normal text in a given width just by adding an empty space. | public static void | showPreviousAndNextBar(String pageName, String extraParam, HTMLAnchorElement linkNext, HTMLAnchorElement linkPrev, int startIndex, int count, int listAmount, int currentListAmount) Show previous and next bar. | public static void | tableSetter(NodeList list, String tableBgColor) |
bodySetter | public static void bodySetter(NodeList list, String bodyBgColor, String bodyLink, String bodyALink, String bodyVLink)(Code) | | Here the BODY-tag is design, first removing old attribs, then set new
attribs
Parameters: list - List of all nodes found by the NAME-param Parameters: bodyBgColor - Parameters: bodyLink - Parameters: bodyALink - Parameters: bodyVLink - |
cellSetter | public static void cellSetter(NodeList list, String tableBgColor)(Code) | | Here the TD/TR-tag is design, first removing old attribs, then set new
attribs
Parameters: list - List of all nodes found by the NAME-param Parameters: tableBgColor - |
checkStartIndexAndCount | public static Vector checkStartIndexAndCount(String startIndexStr, String countStr, int listAmount)(Code) | | Checks the startIndex and Count.
|
fontSetter | public static void fontSetter(NodeList list, String fontFace, String fontSize, String fontColor)(Code) | | Here the FONT-tag is design, first removing old attribs, then set new
attribs
Parameters: list - List of all nodes found by the NAME-param Parameters: fontFace - Parameters: fontSize - Parameters: fontColor - |
formatTextToHtml | public static Element formatTextToHtml(String inputText, HTMLObjectImpl inputPage, int width)(Code) | | Format a normal text to html.
- Cut a long sentence in pieces
- Change all the \n in
- Change all the empty space in " " and
- Check for http://
Return an element.
|
formatTextToWidth | public static String formatTextToWidth(String inputText, int width)(Code) | | Format a normal text in a given width just by adding an empty space.
|
tableSetter | public static void tableSetter(NodeList list, String tableBgColor)(Code) | | Here the TABLE-tag is design, first removing old attribs, then set new
attribs
Parameters: list - List of all nodes found by the NAME-param Parameters: tableBgColor - |
|
|