|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.ipage.iform.IFormTextEntry
public class IFormTextEntry
The IFormTextEntry is a TransformationBean used to produce a form 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 IForm from their cell phone, the IForm bean will produce either WML or HDML based on the type of browser the cell phone contained. If another user accesses the same JSP page using Internet Explorer, the IForm bean would produce HTML instead.
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:IFormTextEntry 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 |
---|
Fields inherited from class com.sas.servlet.tbeans.ipage.BaseIPage |
---|
HTML_PROLOG, WML_PROLOG |
Constructor Summary | |
---|---|
IFormTextEntry()
The default constructor. |
|
IFormTextEntry(java.lang.String name)
Construct a new IFormTextEntry. |
|
IFormTextEntry(java.lang.String name,
java.lang.String prompt)
Construct a new IFormTextEntry. |
|
IFormTextEntry(java.lang.String name,
java.lang.String prompt,
java.lang.String format)
Construct a new IFormTextEntry. |
Method Summary | |
---|---|
java.lang.String |
getFormat()
Gets the format of the element. |
java.lang.String |
getValue()
Gets the default text value of the element. |
void |
setFormat(java.lang.String format)
Sets the format of this element. |
void |
setValue(java.lang.String value)
Sets the default text value of this element shown when the element is first displayed. |
void |
writeBase(java.io.PrintWriter out)
Writes the main base section of the IFormElement bean. |
void |
writeFooter(java.io.PrintWriter out)
Writes the footer. |
void |
writeHeader(java.io.PrintWriter out)
Writes the header. |
Methods inherited from class com.sas.servlet.tbeans.ipage.iform.BaseIFormElement |
---|
getAcceptLabel, getAcceptURL, getParentIForm, getPrompt, getShortPrompt, setAcceptLabel, setAcceptURL, setParentIForm, setPrompt, setShortPrompt, write, write |
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, writeBase, writeBase, writeFooter, writeFooter, writeHeader, writeHeader |
Constructor Detail |
---|
public IFormTextEntry()
public IFormTextEntry(java.lang.String name)
name
- The name of the elementpublic IFormTextEntry(java.lang.String name, java.lang.String prompt)
name
- The name of the elementprompt
- The prompt to be prependedpublic IFormTextEntry(java.lang.String name, java.lang.String prompt, java.lang.String format)
name
- The name of the elementprompt
- The prompt to be prependedformat
- The format of the inputMethod Detail |
---|
public void setFormat(java.lang.String format)
format
- The format Stringpublic java.lang.String getFormat()
public void setValue(java.lang.String value)
text
- The default text Stringpublic java.lang.String getValue()
public void writeHeader(java.io.PrintWriter out) throws java.io.IOException
writeHeader
in class BaseIFormElement
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeBase(java.io.PrintWriter out) throws java.io.IOException
writeBase
in class BaseIFormElement
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeFooter(java.io.PrintWriter out) throws java.io.IOException
writeFooter
in class BaseIFormElement
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |