|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.servlet.tbeans.BaseTransformationTag
public abstract class BaseTransformationTag
The base object for all tag handlers in the SAS Custom Tag Library that are used as wrappers for TransformationBeans.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CLIENT_INFO_INSTANCE
Static String reference of the default ClientInfo instance to be used in the PageContext. |
static java.lang.String |
HDML
Static String reference of the "hdml" render type. |
static java.lang.String |
HTML
Static String reference of the "html" render type. |
static java.lang.String |
WML
Static String reference of the "wml" render type. |
Fields inherited from class com.sas.taglib.BaseTag |
---|
APPLICATION, PAGE, RB_KEY, REQUEST, SESSION |
Constructor Summary | |
---|---|
BaseTransformationTag()
Default constructor |
Method Summary | |
---|---|
protected void |
applyAttributes()
Sets the basic attributes (request,name,prolog,epilog) common to all Transformation Beans. |
int |
doEndTag()
This Method Overrides the javax.servlet.jsp.tagext.TagSupport doEndTag Method. |
int |
doStartTag()
This Method Overrides the javax.servlet.jsp.tagext.TagSupport doStartTag Method. |
java.lang.String |
getCustomAttributes()
Gets the customAttributes attribute (String) for a custom tag. |
java.lang.String |
getEpilog()
Returns the epilog if specified, otherwise null. |
java.util.Locale |
getLocale()
Get the locale |
java.lang.String |
getName()
Returns the name for the custom tag |
java.lang.String |
getObjectDataProperty()
Get the objectDataProperty String. |
java.lang.String |
getProlog()
Returns the prolog if specified, otherwise null. |
boolean |
getRender()
Returns true if the custom tag should render it's information immediately, or false otherwise. |
java.lang.String |
getRenderType()
Gets the render type property for the custom tag. |
protected void |
initialize(boolean includeAttributes)
Initializes attributes and variables for this tag handler. |
void |
setCustomAttributes(java.lang.String customAttributes)
Sets the customAttributes attribute (String) for a custom tag. |
void |
setEpilog(java.lang.String epilog)
Sets the epilog attribute (String) for a custom tag. |
void |
setLocale(java.util.Locale locale)
Set the locale |
void |
setName(java.lang.String name)
Sets the name attribute for a custom tag. |
void |
setObjectDataProperty(java.lang.String property)
Set the String that is used as the value of the ObjectData attribute. |
void |
setProlog(java.lang.String prolog)
Sets the prolog attribute (String) for a custom tag. |
void |
setRender(boolean render)
Sets the render property (boolean) from a tag attribute. |
void |
setRenderType(java.lang.String renderType)
Sets the rendertype property (String) from a tag attribute. |
Field Detail |
---|
public static final java.lang.String DEFAULT_CLIENT_INFO_INSTANCE
public static final java.lang.String HTML
public static final java.lang.String HDML
public static final java.lang.String WML
Constructor Detail |
---|
public BaseTransformationTag()
Method Detail |
---|
public void setCustomAttributes(java.lang.String customAttributes)
customAttributes
- a list of attributes in the form of attribute="value", space delimitedpublic void setEpilog(java.lang.String epilog)
epilog
- Text that is output immediately after the last markup tag.public void setName(java.lang.String name)
Note: If a name is not specified, then id will be used if available.
name
- Value assigned to the markup tag's name attribute.public void setProlog(java.lang.String prolog)
prolog
- Text that is output immediately preceeding the first markup tag.public void setRender(boolean render)
<sas:checkbox id="cb" name="color" value="blue" label="blue" render="false"/>
<sas:checkbox ref="cb" />
<sas:checkbox id="cb" name="color" value="blue" label="blue" render="false"/>
<% cb.write(out); %>
render
- Flag that, if true, indicates that the complete markup of the bean is output when the tag is closed.
It also sets the the visible property on the underlying TransformationBean.public void setRenderType(java.lang.String renderType)
rendertype
- Type of markup for the output tag(s).public void setObjectDataProperty(java.lang.String property)
property
- Value assigned to the output tag's objectDataProperty attribute.public void setLocale(java.util.Locale locale)
setLocale
in class BaseTag
locale
- Specifies the locale to use for this instance of the class.public java.lang.String getCustomAttributes()
public java.lang.String getEpilog()
public java.lang.String getName()
public java.lang.String getProlog()
public boolean getRender()
public java.lang.String getRenderType()
public java.lang.String getObjectDataProperty()
public java.util.Locale getLocale()
getLocale
in class BaseTag
protected void initialize(boolean includeAttributes)
initialize
in class BaseTag
includeAttributes
- Set to true if attributes are to be set to default values.protected void applyAttributes() throws javax.servlet.jsp.JspException
applyAttributes
in class BaseTag
baseTag
- Any class which extends TransformationInterface is valid
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.BaseTag.setInstantiate(boolean)
,
TagSupport.doStartTag()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.TagSupport.doEndTag()
,
BaseTag.setInstantiate(boolean)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |