public abstract class GXAbstractTag extends BodyTagSupport implements Serializable
getTagName() - to specify the tag namebuildHtmlTag(StringBuffer) - for building the HTML string of the specific tag
<gx:TAG-NAME ...attributes...>...<gx:/TAG-NAME>
and should not be initialized by the user.
setCssClass , setStyle, etc.| Constructor and Description |
|---|
GXAbstractTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
Method is invoked after every body evaluation to control whether the body will be reevaluated or not.
|
int |
doEndTag()
Triggers the tag build process.
|
int |
doStartTag()
Overrides the tag library class
BodyTagSupport and performs validation and further initialization. |
String |
getId()
Retrieves the ID of the current tag
|
String |
getInnerHTML()
Used for retrieving the Inner HTML tag.
|
GXIWebPageContext |
getMainContext()
Used for getting the main context class for the current tag.
|
String |
getName() |
void |
setAlign(String value)
Called by the JSP page for setting the align attribute to the tag output html.
|
void |
setAttributes(String value)
Used for writing free text of attributes.
|
void |
setBgcolor(String value) |
void |
setCssClass(String cssClass)
Called by the JSP page for setting the css class of the gx tag.
|
void |
setHeight(String value)
Called by the JSP page for setting the height attribute to the tag output html.
|
void |
setId(String id)
Sets an ID identifier to the current tag.
|
void |
setOnclick(String value)
Called by the JSP page for setting the onclick attribute to the tag output html.
|
void |
setPageContext(PageContext pageContext)
Overrides the
BodyTagSupport class, and is used for initializing the current tag. |
void |
setStyle(String value)
Called by the JSP page for setting the style attribute to the tag output html.
|
void |
setTitle(String value)
Called by the JSP page for setting the title attribute to the tag output html.
|
void |
setVisible(String value)
Uses for show/hide the tag.
|
void |
setWidth(String value)
Called by the JSP page for setting the width attribute to the tag output html.
|
public String getInnerHTML()
<gx:span>some text</gx:span>public void setId(String id)
set method is called automatically by the JSP page
when setting the ID attribute to a gx tag.
GXITagsAccesor.setTagContent(String, String).public String getId()
public String getName()
public void setCssClass(String cssClass)
cssClass - The css class namepublic void setPageContext(PageContext pageContext)
BodyTagSupport class, and is used for initializing the current tag.pageContext - The JSP page contextpublic int doStartTag()
throws JspException
BodyTagSupport and performs validation and further initialization.JspExceptionBodyTagSupport#doStartTag()public GXIWebPageContext getMainContext()
public int doEndTag()
throws JspTagException
GXITagsAccesor.setTagVisible(String, boolean), the tag will not be rendered.buildHtmlTag(StringBuffer) in order for each inheriting class to build its HTML content.JspTagExceptionpublic int doAfterBody()
throws JspTagException
JspTagExceptionpublic void setAttributes(String value)
value - The free text that specifies the attributespublic void setVisible(String value)
value - true/false if the tag should be visible.GXITagsAccesor.setTagVisible(String, boolean)public void setStyle(String value)
value - The style attributes valuepublic void setTitle(String value)
value - The title attribute valuepublic void setOnclick(String value)
value - The onclick attribute valuepublic void setAlign(String value)
value - The align attribute valuepublic void setWidth(String value)
value - The width attribute valuepublic void setHeight(String value)
value - The height attribute valuepublic void setBgcolor(String value)
Copyright 2022 Software AG. All rights reserved. Use is subject to license terms.