|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTagSupport
BodyTagSupport
AbstractClassicTag
HtmlBaseTag
public abstract class HtmlBaseTag
[Base] Anchor, Form, Image, ImageAnchor (Image), Label, SelectOption [FocusBase] Button, CheckBoxOption, ImageButton, RadioButtonOption [DataSource] FileUpload [DefaultableDatSource] CheckBox, TextArea, TextBox [OptionsDataSource] Select [GroupDataSource] CheckBoxGroup, RadioButtonGroup
Field Summary |
---|
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 | |
---|---|
HtmlBaseTag()
|
Method Summary | |
---|---|
protected String |
getJavaScriptAttribute(String name)
|
String |
getOnClick()
Gets the onClick javascript event. |
protected abstract AbstractHtmlState |
getState()
This method will return the state associated with the tag. |
String |
getTagId()
Return the ID of the tag. |
protected void |
localRelease()
Free the state variables of this base class. |
protected String |
renderDefaultNameAndId(HttpServletRequest request,
AbstractHtmlState state,
String id,
String name)
|
protected String |
renderNameAndId(HttpServletRequest request,
AbstractHtmlState state,
Form parentForm)
Assumptions: The state.name must be fully formed or the "real name" of the form. |
void |
setAttribute(String name,
String value,
String facet)
Base support for the attribute tag. |
void |
setDir(String dir)
Sets the dir attribute for the HTML element. |
void |
setLang(String lang)
Sets the lang attribute for the HTML element. |
void |
setOnClick(String onclick)
Sets the onClick javascript event. |
void |
setOnDblClick(String ondblclick)
Sets the onDblClick javascript event. |
void |
setOnKeyDown(String onkeydown)
Sets the onKeyDown javascript event. |
void |
setOnKeyPress(String onkeypress)
Sets the onKeyPress javascript event. |
void |
setOnKeyUp(String onkeyup)
Sets the onKeyUp javascript event. |
void |
setOnMouseDown(String onmousedown)
Sets the onMouseDown javascript event. |
void |
setOnMouseMove(String onmousemove)
Sets the onMouseMove javascript event. |
void |
setOnMouseOut(String onmouseout)
Sets the onMouseOut javascript event. |
void |
setOnMouseOver(String onmouseover)
Sets the onMouseOver javascript event. |
void |
setOnMouseUp(String onmouseup)
Sets the onMouseUp javascript event. |
protected void |
setStateAttribute(String name,
String value,
AbstractHtmlState tsh)
Attribute implementation. |
void |
setStyle(String style)
Sets the style of the rendered html tag. |
void |
setStyleClass(String styleClass)
Sets the style class of the rendered html tag. |
void |
setTagId(String tagId)
Set the ID of the tag. |
void |
setTitle(String title)
Sets the value of the title attribute. |
Methods inherited from class BodyTagSupport |
---|
doAfterBody, doEndTag, doInitBody, doStartTag, 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 Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public HtmlBaseTag()
Method Detail |
---|
protected abstract AbstractHtmlState getState()
AbstractHtmlState
class.public void setStyle(String style)
setStyle
in interface IHtmlCore
style
- the html style.public void setStyleClass(String styleClass)
setStyleClass
in interface IHtmlCore
styleClass
- the html style class.public void setTagId(String tagId) throws JspException
setTagId
in interface IHtmlCore
tagId
- the tagId. A value is required.
JspException
public String getTagId()
netui_names
table written
into the HTML.
public void setTitle(String title)
setTitle
in interface IHtmlCore
title
- public void setLang(String lang)
setLang
in interface IHtmlI18n
lang
- public void setDir(String dir)
setDir
in interface IHtmlI18n
dir
- public String getOnClick()
public void setOnClick(String onclick)
setOnClick
in interface IHtmlEvents
onclick
- the onClick event.public void setOnDblClick(String ondblclick)
setOnDblClick
in interface IHtmlEvents
ondblclick
- the onDblClick event.public void setOnKeyDown(String onkeydown)
setOnKeyDown
in interface IHtmlEvents
onkeydown
- the onKeyDown event.public void setOnKeyPress(String onkeypress)
setOnKeyPress
in interface IHtmlEvents
onkeypress
- the onKeyPress event.public void setOnKeyUp(String onkeyup)
setOnKeyUp
in interface IHtmlEvents
onkeyup
- the onKeyUp event.public void setOnMouseDown(String onmousedown)
setOnMouseDown
in interface IHtmlEvents
onmousedown
- the onMouseDown event.public void setOnMouseMove(String onmousemove)
setOnMouseMove
in interface IHtmlEvents
onmousemove
- the onMouseMove event.public void setOnMouseOut(String onmouseout)
setOnMouseOut
in interface IHtmlEvents
onmouseout
- the onMouseOut event.public void setOnMouseOver(String onmouseover)
setOnMouseOver
in interface IHtmlEvents
onmouseover
- the onMouseOver event.public void setOnMouseUp(String onmouseup)
setOnMouseUp
in interface IHtmlEvents
onmouseup
- the onMouseUp event.protected String getJavaScriptAttribute(String name)
protected void setStateAttribute(String name, String value, AbstractHtmlState tsh) throws JspException
name
- value
- tsh
-
JspException
public void setAttribute(String name, String value, String facet) throws JspException
attribute
tag. This requires that the tag buffer their body and
write attribute in the end tag. For the HTML tags it is not legal to set
the id
or name
attributes. In addition, the base tag does
not allow facets to be set. If the attribute is legal it will be added to the
general expression map stored in the AbstractHtmlState
of the tag.
setAttribute
in interface IAttributeConsumer
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.protected final String renderNameAndId(HttpServletRequest request, AbstractHtmlState state, Form parentForm)
state
- parentForm
-
protected String renderDefaultNameAndId(HttpServletRequest request, AbstractHtmlState state, String id, String name)
protected void localRelease()
localRelease
in class AbstractClassicTag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |