| java.lang.Object com.salmonllc.html.HtmlComponent com.salmonllc.html.HtmlText
HtmlText | public class HtmlText extends HtmlComponent (Code) | | This type can be used to add text to your page.
|
Constructor Summary | |
public | HtmlText(String text, HtmlPage p) Constructs an html text object for the page using the default font. | public | HtmlText(String text, HtmlStyle style, HtmlPage p) This method was created in VisualAge. | public | HtmlText(String text, String font, HtmlPage p) | public | HtmlText(String text, String font, HtmlPage p, String theme) | public | HtmlText(String name, String text, HtmlStyle style, HtmlPage p) | public | HtmlText(String name, String text, HtmlStyle style, HtmlPage p, String theme) | public | HtmlText(String name, String text, String font, HtmlPage p) | public | HtmlText(String name, String text, String font, HtmlPage p, String theme) |
Method Summary | |
public void | generateHTML(java.io.PrintWriter p, int rowNo) | public void | generateHTML(java.io.PrintWriter p, int rowStart, int rowEnd) | public boolean | getCenter() Use this method to find out if the that the text will be centered. | public String | getDisplayFormat() | public String | getDisplayFormatLocaleKey() | public DataStoreEvaluator | getExpressionEvaluator() This method returns the DataStore Evaluator used to parse and evaluate the expression set in the setExpression method. | public boolean | getFixSpecialHtmlCharacters() Returns whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated. | public String | getFont() This method will return the font type used by this control.See the Constants at the top of the class for valid font types. | public String | getOnMouseOut() | public String | getOnMouseOver() | public HtmlStyle | getStyle() | public String | getText() This method returns the text in the component. | public String | getText(int rowNo) This method returns the text in the component. | public String | getTextLocaleKey() | public String | getTheme() This method returns the property theme for the component. | public boolean | processParms(java.util.Hashtable h, int row) | public void | setCenter(boolean center) Use this method to indicate that the text should be centered. | public void | setDisplayFormat(String displayFormat) Sets the default display format for the text. | public void | setDisplayFormatLocaleKey(String formatLocaleKey) | public void | setExpression(DataStoreBuffer ds, DataStoreExpression expression) | public void | setExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType) Use this method to bind this component to an expression in a DataStoreBuffer. | public void | setExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType, String format) Use this method to bind this component to an expression in a DataStoreBuffer. | public void | setExpression(DataStoreBuffer ds, DataStoreExpression expression, String format) Use this method to bind this component to an expression in a DataStoreBuffer. | public void | setExpression(DataStoreBuffer ds, String expression) | public void | setExpression(DataStoreBuffer ds, String expression, int aggregateType) Use this method to bind this component to an expression in a DataStoreBuffer. | public void | setExpression(DataStoreBuffer ds, String expression, int aggregateType, String format) Use this method to bind this component to an expression in a DataStoreBuffer. | public void | setExpression(DataStoreBuffer ds, String expression, String format) Use this method to bind this component to an expression in a DataStoreBuffer. | public void | setFixSpecialHtmlCharacters(boolean fix) Specify whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated. | public void | setFont(String font) This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method. | public void | setFontEndTag(String value) This method sets the end font tag for the component. | public void | setFontStartTag(String value) This method sets the start font tag for the component. | public void | setOnMouseOut(String onMouseOut) | public void | setOnMouseOver(String onMouseOver) | public void | setStyle(HtmlStyle style) | public void | setText(String text) This method sets the text that the componnt will generate. | public void | setTextLocaleKey(String textLocaleKey) | public void | setTheme(String theme) This method sets the property theme for the component. | public void | updateLocale() |
AGGREGATE_AVERAGE | final public static int AGGREGATE_AVERAGE(Code) | | |
AGGREGATE_COUNT | final public static int AGGREGATE_COUNT(Code) | | |
AGGREGATE_SUM | final public static int AGGREGATE_SUM(Code) | | |
FONT_COLUMN_CAPTION | final public static String FONT_COLUMN_CAPTION(Code) | | |
FONT_DEFAULT_DISPLAY_DATA | final public static String FONT_DEFAULT_DISPLAY_DATA(Code) | | |
FONT_DEFAULT_LABEL_TEXT | final public static String FONT_DEFAULT_LABEL_TEXT(Code) | | |
FONT_LARGE_LINK | final public static String FONT_LARGE_LINK(Code) | | |
FONT_PAGE_HEADING | final public static String FONT_PAGE_HEADING(Code) | | |
FONT_SECTION_HEADING | final public static String FONT_SECTION_HEADING(Code) | | |
FONT_TABLE_HEADING | final public static String FONT_TABLE_HEADING(Code) | | |
FONT_TEXT_EDIT | final public static String FONT_TEXT_EDIT(Code) | | |
_center | public boolean _center(Code) | | |
HtmlText | public HtmlText(String text, HtmlPage p)(Code) | | Constructs an html text object for the page using the default font.
Parameters: text - The text to place in the page. Parameters: p - The page to put the text in. |
HtmlText | public HtmlText(String text, HtmlStyle style, HtmlPage p)(Code) | | This method was created in VisualAge.
Parameters: text - java.lang.String Parameters: style - com.salmonllc.html.HtmlStyle Parameters: p - com.salmonllc.html.HtmlPage |
HtmlText | public HtmlText(String text, String font, HtmlPage p)(Code) | | Constructs an html text object
Parameters: text - The text to place in the page. Parameters: font - The font to use (See the constants at the top of the class). Parameters: p - The page to put the text in. |
HtmlText | public HtmlText(String text, String font, HtmlPage p, String theme)(Code) | | Constructs an html text object
Parameters: text - The text to place in the page. Parameters: font - The font to use (See the constants at the top of the class). Parameters: p - The page to put the text in. Parameters: theme - The theme to use for loading properties |
HtmlText | public HtmlText(String name, String text, HtmlStyle style, HtmlPage p)(Code) | | Constructs an html text object
Parameters: name - java.lang.String Parameters: text - java.lang.String Parameters: style - com.salmonllc.html.HtmlStyle Parameters: p - com.salmonllc.html.HtmlPage |
HtmlText | public HtmlText(String name, String text, HtmlStyle style, HtmlPage p, String theme)(Code) | | Constructs an html text object
Parameters: name - java.lang.String Parameters: text - java.lang.String Parameters: style - com.salmonllc.html.HtmlStyle Parameters: p - com.salmonllc.html.HtmlPage Parameters: theme - java.lang.String |
HtmlText | public HtmlText(String name, String text, String font, HtmlPage p)(Code) | | Constructs an html text object
Parameters: text - The text to place in the page. Parameters: font - The font to use (See the constants at the top of the class). Parameters: p - The page to put the text in. |
HtmlText | public HtmlText(String name, String text, String font, HtmlPage p, String theme)(Code) | | Constructs an html text object for the page
Parameters: text - The text to place in the page. Parameters: font - The font to use (See the constants at the top of the class). Parameters: p - The page to put the text in. Parameters: theme - The theme to use for loading properties |
getCenter | public boolean getCenter()(Code) | | Use this method to find out if the that the text will be centered.
|
getDisplayFormat | public String getDisplayFormat()(Code) | | Gets the default display format for the text
String |
getDisplayFormatLocaleKey | public String getDisplayFormatLocaleKey()(Code) | | Returns the Locale key used for display format
|
getExpressionEvaluator | public DataStoreEvaluator getExpressionEvaluator()(Code) | | This method returns the DataStore Evaluator used to parse and evaluate the expression set in the setExpression method.
|
getFixSpecialHtmlCharacters | public boolean getFixSpecialHtmlCharacters()(Code) | | Returns whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated.
|
getFont | public String getFont()(Code) | | This method will return the font type used by this control.See the Constants at the top of the class for valid font types.
|
getOnMouseOut | public String getOnMouseOut()(Code) | | Use this method to get the javascript that will be executed when the mouse passes over out of all the components
|
getOnMouseOver | public String getOnMouseOver()(Code) | | Use this method to get the javascript that will be executed when the mouse passes over any component in the link
|
getStyle | public HtmlStyle getStyle()(Code) | | Gets the CSS Style used to display this text
|
getText | public String getText()(Code) | | This method returns the text in the component.
|
getText | public String getText(int rowNo)(Code) | | This method returns the text in the component.
|
getTextLocaleKey | public String getTextLocaleKey()(Code) | | Returns the Locale key used for the text of this component
|
getTheme | public String getTheme()(Code) | | This method returns the property theme for the component.
|
setCenter | public void setCenter(boolean center)(Code) | | Use this method to indicate that the text should be centered.
|
setDisplayFormat | public void setDisplayFormat(String displayFormat)(Code) | | Sets the default display format for the text. This only works for components bound to a datastore expression.
Parameters: displayFormat - The displayFormat to set |
setDisplayFormatLocaleKey | public void setDisplayFormatLocaleKey(String formatLocaleKey)(Code) | | Sets the Locale key used for display format
|
setExpression | public void setExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType) throws Exception(Code) | | Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters: ds - The DataStore to bind to. Parameters: expression - The expression to bind to. Parameters: aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT See Also: DataStoreEvaluator |
setExpression | public void setExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType, String format) throws Exception(Code) | | Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters: ds - The DataStore to bind to. Parameters: expression - The expression to bind to. Parameters: aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT Parameters: format - The patter to use to format the result See Also: com.salmonllc.sql.DataStore.setFormat See Also: DataStoreEvaluator |
setExpression | public void setExpression(DataStoreBuffer ds, String expression) throws Exception(Code) | | Use this method to bind this component to an expression in a DataStore
Parameters: ds - The DataStore to bind to. Parameters: expression - The expression to bind to. See Also: DataStoreEvaluator |
setExpression | public void setExpression(DataStoreBuffer ds, String expression, int aggregateType) throws Exception(Code) | | Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters: ds - The DataStore to bind to. Parameters: expression - The expression to bind to. Parameters: aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT See Also: DataStoreEvaluator |
setExpression | public void setExpression(DataStoreBuffer ds, String expression, int aggregateType, String format) throws Exception(Code) | | Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters: ds - The DataStore to bind to. Parameters: expression - The expression to bind to. Parameters: aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT Parameters: format - The patter to use to format the result See Also: com.salmonllc.sql.DataStore.setFormat See Also: DataStoreEvaluator |
setExpression | public void setExpression(DataStoreBuffer ds, String expression, String format) throws Exception(Code) | | Use this method to bind this component to an expression in a DataStoreBuffer. The resulting expression wil be formatted according to the pattern specified.
Parameters: ds - The DataStore to bind to. Parameters: expression - The expression to bind to. Parameters: format - The patter to use to format the result See Also: com.salmonllc.sql.DataStore.setFormat See Also: DataStoreEvaluator |
setFixSpecialHtmlCharacters | public void setFixSpecialHtmlCharacters(boolean fix)(Code) | | Specify whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated.
|
setFont | public void setFont(String font)(Code) | | This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method.
|
setFontEndTag | public void setFontEndTag(String value)(Code) | | This method sets the end font tag for the component.
|
setFontStartTag | public void setFontStartTag(String value)(Code) | | This method sets the start font tag for the component.
|
setOnMouseOut | public void setOnMouseOut(String onMouseOut)(Code) | | Use this method to set the javascript that will be executed when the mouse passes over out of all the components
|
setOnMouseOver | public void setOnMouseOver(String onMouseOver)(Code) | | Use this method to set the javascript that will be executed when the mouse passes over any component in the link
|
setStyle | public void setStyle(HtmlStyle style)(Code) | | Sets the CSS Style used to display this text
Parameters: style - com.salmonllc.html.HtmlStyle |
setText | public void setText(String text)(Code) | | This method sets the text that the componnt will generate.
|
setTextLocaleKey | public void setTextLocaleKey(String textLocaleKey)(Code) | | Returns the Locale key used for text
|
setTheme | public void setTheme(String theme)(Code) | | This method sets the property theme for the component.
Parameters: theme - The theme to use. |
updateLocale | public void updateLocale()(Code) | | Updates the text and format for the current local
|
|
|