|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.ipage.IText
public class IText
The IText is a TransformationBean used to produce a text page using a variety of markup languages (including WML,HDML, and HTML). This class will produce the appropriate markup language based on the requesting browser. For example, if a user accesses a JSP page containing an IText from their cell phone, the IText bean will produce either a WML or HDML page based on the type of browser the cell phone contained. If another user accesses the same JSP page using Internet Explorer, the IText bean would produce HTML instead.
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
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/.
Examples for this class may be found on the Examples Site.
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:IText 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 .
BaseIPage
,
Serialized FormField Summary |
---|
Fields inherited from class com.sas.servlet.tbeans.ipage.BaseIPage |
---|
HTML_PROLOG, WML_PROLOG |
Constructor Summary | |
---|---|
IText()
Construct a new IText |
|
IText(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Construct a new IText |
|
IText(java.lang.String text)
Construct a new IText |
|
IText(java.lang.String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Construct a new IText |
Method Summary | |
---|---|
java.lang.String |
getAcceptLabel()
Get the acceptLabel String |
java.lang.String |
getAcceptURL()
Get the acceptURL String |
int |
getAlignment()
Returns the alignment. |
java.lang.String |
getText()
Get the text |
void |
setAcceptLabel(java.lang.String acceptLabel)
Set the acceptLabel String. |
void |
setAcceptURL(java.lang.String acceptURL)
Set the acceptURL String to an href. |
void |
setAlignment(int value)
Sets the alignment. |
void |
setText(java.lang.String value)
Set the text to be written out to the requesting device. |
void |
writeBase(java.io.PrintWriter out)
Writes the text data in the appropriate markup language |
Methods inherited from class com.sas.servlet.tbeans.ipage.BaseIPage |
---|
addOption, getBrowserType, getCacheTimeToLive, getOptionLabel, getOptionURL, getTitle, resolveNewLine, setBrowserType, setCacheTimeToLive, setId, setName, setName, setRequest, setResponse, setStyle, setStyleClass, setTitle, toString, write, writeBase, writeBase, writeFooter, writeFooter, writeFooter, writeHeader, writeHeader, writeHeader |
Constructor Detail |
---|
public IText()
public IText(java.lang.String text)
text
- The text datapublic IText(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- The request objectresponse
- The response objectpublic IText(java.lang.String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
name
- The namerequest
- The request objectresponse
- The response objectMethod Detail |
---|
public void setAlignment(int value)
value
- the horizontal alignment of the Text.public int getAlignment()
public void setAcceptURL(java.lang.String acceptURL)
acceptURL
- The acceptURL href Stringpublic void setAcceptLabel(java.lang.String acceptLabel)
acceptLabel
- The label of the softkey button or link.public java.lang.String getAcceptURL()
public java.lang.String getAcceptLabel()
public void writeBase(java.io.PrintWriter out) throws java.io.IOException
writeBase
in class BaseIPage
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void setText(java.lang.String value)
text
- The text datapublic java.lang.String getText()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |