| org.apache.beehive.netui.tags.html.HtmlBaseTag org.apache.beehive.netui.tags.html.LabelBase
All known Subclasses: org.apache.beehive.netui.tags.html.Span, org.apache.beehive.netui.tags.html.Label,
LabelBase | abstract public class LabelBase extends HtmlBaseTag implements IFormattable(Code) | | This is a base class providing implementation for both the Label and FormLabel.
|
Method Summary | |
public void | addFormatter(FormatTag.Formatter formatter) | protected void | filter(String value, AbstractRenderAppender writer, boolean markupHTMLSpaceReturn) Filter the specified string for characters that are senstive to
HTML interpreters, returning the string with these characters replaced
by the corresponding character entities. | protected String | formatText(Object text) | public void | formatterHasError() Indicate that a formatter has reported an error so the formatter should output it's
body text. | protected void | localRelease() Release any acquired resources. | public void | setDefaultValue(Object defaultValue) Set the default value of this Label.
This can be an expression. | public void | setEscapeWhiteSpaceForHtml(boolean escapeWhiteSpace) Sets a boolean flag indicating if we will escape
white space for HTML. | public void | setFormatDefaultValue(boolean formatDisplay) Boolean indicating whether the formatter should be applied to the defaultValue. | public void | setValue(Object value) Sets the text of the Label. |
DEFAULT_NULL_TEXT | final protected static String DEFAULT_NULL_TEXT(Code) | | |
_escapeWhiteSpace | protected boolean _escapeWhiteSpace(Code) | | |
_formatDefaultValue | protected boolean _formatDefaultValue(Code) | | |
_formatterErrors | protected boolean _formatterErrors(Code) | | |
addFormatter | public void addFormatter(FormatTag.Formatter formatter)(Code) | | Adds a FormatTag.Formatter to the Label's set of formatters
Parameters: formatter - a FormatTag.Formatter added by a child FormatTag. |
filter | protected void filter(String value, AbstractRenderAppender writer, boolean markupHTMLSpaceReturn)(Code) | | Filter the specified string for characters that are senstive to
HTML interpreters, returning the string with these characters replaced
by the corresponding character entities.
Parameters: value - The string to be filtered and returned Parameters: markupHTMLSpaceReturn - convert space characters and return charactersto and <br /> marketup for html. |
formatterHasError | public void formatterHasError()(Code) | | Indicate that a formatter has reported an error so the formatter should output it's
body text.
|
localRelease | protected void localRelease()(Code) | | Release any acquired resources.
|
setDefaultValue | public void setDefaultValue(Object defaultValue)(Code) | | Set the default value of this Label.
This can be an expression. If the default value is an expression
all formatters will be applied, otherwise the default value will be output
without being formatted.
Parameters: defaultValue - the default value |
setEscapeWhiteSpaceForHtml | public void setEscapeWhiteSpaceForHtml(boolean escapeWhiteSpace)(Code) | | Sets a boolean flag indicating if we will escape
white space for HTML. If this is true the white space
charcters ' ' will be converted into " " and '\n' converted into
" ". The result is that in HTML white space will be represented
correctly. If this is false then white space will be
output as it is found in the value.
Parameters: escapeWhiteSpace - boolean indicating if we are escaping for white space. |
setFormatDefaultValue | public void setFormatDefaultValue(boolean formatDisplay)(Code) | | Boolean indicating whether the formatter should be applied to the defaultValue.
The default is "false" meaning formatters will not be applied.
Parameters: formatDisplay - Apply formatting to the default value. |
setValue | public void setValue(Object value)(Code) | | Sets the text of the Label.
Parameters: value - the Label value or expression. |
|
|