|
|||||||||
| 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)
|
protected Form |
getNearestForm()
Returns the closest parent form tag, or null if there is none. |
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 IHtmlCorestyle - the html style.public void setStyleClass(String styleClass)
setStyleClass in interface IHtmlCorestyleClass - the html style class.
public void setTagId(String tagId)
throws JspException
setTagId in interface IHtmlCoretagId - the tagId. A value is required.
JspExceptionpublic String getTagId()
netui_names table written
into the HTML.
public void setTitle(String title)
setTitle in interface IHtmlCoretitle - public void setLang(String lang)
setLang in interface IHtmlI18nlang - public void setDir(String dir)
setDir in interface IHtmlI18ndir - public String getOnClick()
public void setOnClick(String onclick)
setOnClick in interface IHtmlEventsonclick - the onClick event.public void setOnDblClick(String ondblclick)
setOnDblClick in interface IHtmlEventsondblclick - the onDblClick event.public void setOnKeyDown(String onkeydown)
setOnKeyDown in interface IHtmlEventsonkeydown - the onKeyDown event.public void setOnKeyPress(String onkeypress)
setOnKeyPress in interface IHtmlEventsonkeypress - the onKeyPress event.public void setOnKeyUp(String onkeyup)
setOnKeyUp in interface IHtmlEventsonkeyup - the onKeyUp event.public void setOnMouseDown(String onmousedown)
setOnMouseDown in interface IHtmlEventsonmousedown - the onMouseDown event.public void setOnMouseMove(String onmousemove)
setOnMouseMove in interface IHtmlEventsonmousemove - the onMouseMove event.public void setOnMouseOut(String onmouseout)
setOnMouseOut in interface IHtmlEventsonmouseout - the onMouseOut event.public void setOnMouseOver(String onmouseover)
setOnMouseOver in interface IHtmlEventsonmouseover - the onMouseOver event.public void setOnMouseUp(String onmouseup)
setOnMouseUp in interface IHtmlEventsonmouseup - 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 IAttributeConsumername - 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 Form getNearestForm()
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 | ||||||||