|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.servlet.tbeans.LabelTag
public class LabelTag
LabelTag is the tag handler class for the sas:Label custom tag . LabelTag is invoked by the JSP page to evaluate the sas:Label custom tag during the execution of the page. Tag handler methods are called by the JSP page implementation class at various points during the evaluation of the tag. The tag handler methods in turn call methods on the underlying Transformation Bean object, Label, to execute the methods.
If you need to extend or modify the functionality of the sas:Label custom tag, you can subclass this tag handler class.
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Refer to the Custom Tag Library Reference for usage information on the sas:Label custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site.
Field Summary | |
---|---|
protected java.lang.Boolean |
encodedURL
|
protected java.lang.Boolean |
encodeText
|
protected java.lang.String |
labelFor
|
protected java.lang.String |
model
|
protected java.lang.String |
nullTextString
|
protected java.lang.String |
target
|
protected java.lang.String |
text
|
protected java.lang.String |
url
|
Fields inherited from class com.sas.taglib.BaseBodyTag |
---|
DELIMITERS, RB_KEY |
Constructor Summary | |
---|---|
LabelTag()
|
Method Summary | |
---|---|
protected void |
applyAttributes()
Sets the basic attributes (request,name,prolog,epilog) common to all Transformation Beans. |
int |
doStartTag()
Process the start tag for this instance. |
boolean |
getEncodedURL()
Gets the encodedURL attribute (boolean) of the LabelTag. |
java.lang.String |
getFor()
Gets the for attribute (String) of the LabelTag. |
java.lang.String |
getModel()
Gets the model attribute (String) of the LabelTag. |
java.lang.String |
getNullTextString()
Gets the nullTextString attribute (String) of the LabelTag. |
java.lang.String |
getTarget()
Gets the target attribute (String) of the LabelTag. |
java.lang.String |
getText()
Gets the text attribute (String) of the LabelTag. |
java.lang.String |
getURL()
Gets the URL attribute (String) of the LabelTag. |
protected void |
initialize(boolean includeAttributes)
Initializes attributes and variables for this tag handler. |
boolean |
isEncodeText()
Gets the encodeText attribute (boolean) of the LabelTag. |
void |
setEncodedURL(boolean encode)
Sets the encodedURL attribute (boolean) of the LabelTag. |
void |
setEncodeText(boolean encodeText)
Sets the encodedText attribute (boolean) of the LabelTag. |
void |
setFor(java.lang.String id)
Sets the for attribute (String) of the LabelTag. |
void |
setModel(java.lang.String model)
Sets the model attribute (String) of the LabelTag. |
void |
setNullTextString(java.lang.String nullTextString)
Sets the nullTextString attribute (String) of the LabelTag. |
void |
setTarget(java.lang.String target)
Sets the target attribute (String) of the LabelTag. |
void |
setText(java.lang.String text)
Sets the text attribute (String) of the LabelTag. |
void |
setURL(java.lang.String url)
Sets the URL attribute (String) of the LabelTag. |
Methods inherited from class com.sas.taglib.servlet.tbeans.BaseTransformationBodyTag |
---|
doEndTag, getCustomAttributes, getEpilog, getLocale, getName, getObjectDataProperty, getProlog, getRender, getRenderType, setCustomAttributes, setEpilog, setLocale, setName, setObjectDataProperty, setProlog, setRender, setRenderType |
Methods inherited from class com.sas.taglib.BaseBodyTag |
---|
doCatch, doFinally, getApplyAttributes, getBodyStrings, getCompositeComponentKey, getInstantiate, getPageContext, getRef, getScope, getTagScope, getWrappedClassName, getWrappedObject, getWrappedObject, loadBeanInstance, newInstance, release, removeFromScope, searchContext, setApplyAttributes, setCompositeComponentKey, setInstantiate, setRef, setScope, setTagScope, setVariableWithinScope, setWrappedClassName, setWrappedObject, validate |
Field Detail |
---|
protected java.lang.String text
protected java.lang.String url
protected java.lang.String model
protected java.lang.String target
protected java.lang.String labelFor
protected java.lang.String nullTextString
protected java.lang.Boolean encodedURL
protected java.lang.Boolean encodeText
Constructor Detail |
---|
public LabelTag()
Method Detail |
---|
protected void initialize(boolean includeAttributes)
initialize
in class BaseTransformationBodyTag
includeAttributes
- Set to true if attributes are to be set to default values.public void setText(java.lang.String text)
text
- Text string that is displayedpublic void setURL(java.lang.String url)
url
- The URL to which the text should be linked.public void setEncodedURL(boolean encode)
encode
- Specifies whether to encode the URL.public void setEncodeText(boolean encodeText)
encodeText
- Specifies whether to encode the Label text for html, such as replacing < with <public void setTarget(java.lang.String target)
target
- The value of the TARGET= argument on the anchor tagpublic void setModel(java.lang.String model)
model
- The StringDataInterface model for the LabelTagpublic void setFor(java.lang.String id)
id
- Id of the element this Label is forpublic void setNullTextString(java.lang.String nullTextString)
nullTextString
- Written out if the label's text is null.public java.lang.String getText()
public java.lang.String getURL()
public boolean getEncodedURL()
public boolean isEncodeText()
public java.lang.String getTarget()
public java.lang.String getModel()
model
- public java.lang.String getFor()
public java.lang.String getNullTextString()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseTransformationBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.BaseBodyTag.setInstantiate(boolean)
,
TagSupport.doStartTag()
protected void applyAttributes() throws javax.servlet.jsp.JspException
BaseTransformationBodyTag
applyAttributes
in class BaseTransformationBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |