|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlBaseTag
HtmlFocusBaseTag
HtmlDataSourceTag
HtmlDefaultableDataSourceTag
TextBox
public class TextBox
Renders a databound TextBox with the given attributes.
<netui:textBox dataSource="{actionForm.firstName}" defaultValue="{pageFlow.defaultFirstName}" size="20" />
Field Summary |
---|
Fields inherited from class HtmlDefaultableDataSourceTag |
---|
_defaultValue |
Fields inherited from class HtmlDataSourceTag |
---|
_dataSource |
Fields inherited from class AbstractClassicTag |
---|
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT |
Fields inherited from class BodyTagSupport |
---|
bodyContent |
Fields inherited from class TagSupport |
---|
id, pageContext |
Fields inherited from interface BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
TextBox()
|
Method Summary | |
---|---|
void |
addFormatter(FormatTag.Formatter formatter)
Adds a FormatTag.Formatter to the TextBox's set of formatters |
int |
doEndTag()
Render the TextBox. |
int |
doStartTag()
Prepare the TextBox's formatters. |
void |
formatterHasError()
Indicate that a formatter has reported an error so the formatter should output it's body text. |
protected AbstractHtmlState |
getState()
This method will return the state associated with the tag. |
String |
getTagName()
Return the name of the Tag. |
protected void |
localRelease()
Release any acquired resources. |
void |
setAccessKey(char accessKey)
Sets the accessKey attribute value. |
void |
setAlt(String alt)
Sets the alt attribute value. |
void |
setAttribute(String name,
String value,
String facet)
Base support for the attribute tag. |
void |
setMaxlength(int maxlength)
Set the maximum length (in characters) of the TextBox. |
void |
setPassword(boolean password)
Set the password state (true means this is a password field). |
void |
setReadonly(boolean readonly)
Set if this TextBox is read-only. |
void |
setSize(int size)
Set the size (in characters) of the TextBox. |
void |
setTabindex(int tabindex)
Sets the tabIndex of the rendered html tag. |
Methods inherited from class HtmlDefaultableDataSourceTag |
---|
setDefaultValue |
Methods inherited from class HtmlDataSourceTag |
---|
evaluateDataSource, getNamingChain, nameHtmlControl, setDataSource |
Methods inherited from class HtmlFocusBaseTag |
---|
isDisabled, setDisabled, setOnBlur, setOnChange, setOnFocus, setOnSelect |
Methods inherited from class BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface IHtmlCore |
---|
setStyle, setStyleClass, setTagId, setTitle |
Methods inherited from interface Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public TextBox()
Method Detail |
---|
public String getTagName()
getTagName
in interface INetuiTag
getTagName
in class AbstractClassicTag
protected AbstractHtmlState getState()
getState
in class HtmlBaseTag
AbstractHtmlState
class.public void setAttribute(String name, String value, String facet) throws JspException
type
,
and value
attributes.
setAttribute
in interface IAttributeConsumer
setAttribute
in class HtmlBaseTag
name
- The name of the attribute. This value may not be null or the empty string.value
- The value of the attribute. This may contain an expression.facet
- The name of a facet to which the attribute will be applied. This is optional.
JspException
- A JspException may be thrown if there is an error setting the attribute.public void setMaxlength(int maxlength)
maxlength
- - the max lengthpublic void setPassword(boolean password)
password
- - the password statepublic void setReadonly(boolean readonly)
readonly
- - the read-only statepublic void setSize(int size)
size
- - the sizepublic void setAccessKey(char accessKey)
A, C, E, F, G,
H, V, left arrow, and right arrow
.
setAccessKey
in interface IHtmlAccessable
accessKey
- - the accessKey value.public void setAlt(String alt)
setAlt
in interface IHtmlAccessable
alt
- - the alt value.public void setTabindex(int tabindex)
tabindex
- - the tab index.public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
- if a JSP exception has occurredprotected void localRelease()
localRelease
in class HtmlDefaultableDataSourceTag
public void addFormatter(FormatTag.Formatter formatter)
addFormatter
in interface IFormattable
formatter
- - a FormatTag.Formatter added by a child FormatTag.public void formatterHasError()
formatterHasError
in interface IFormattable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |