Expresso 5-6

com.jcorporate.expresso.services.html
Class TextField

java.lang.Object
  extended bycom.jcorporate.expresso.services.html.HtmlElement
      extended bycom.jcorporate.expresso.services.html.TextField
Direct Known Subclasses:
PasswordField

public class TextField
extends HtmlElement

Version:
$Revision: 1.8 $ $Date: 2004/11/17 20:48:18 $
Author:
Michael Nash

Field Summary
protected  String fieldName
           
protected  String fieldValue
           
protected  int maxLength
           
protected  int size
           
 
Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement
attributes, contents, cSSClass, cSSID
 
Constructor Summary
TextField()
          Constructor
TextField(String newFieldName, String newFieldValue, int newMaxLength, int newSize)
          Constructor
 
Method Summary
protected  void display(PrintWriter out, int depth)
          Display the text field on the page
 
Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxLength

protected int maxLength

size

protected int size

fieldName

protected String fieldName

fieldValue

protected String fieldValue
Constructor Detail

TextField

public TextField()
          throws HtmlException
Constructor


TextField

public TextField(String newFieldName,
                 String newFieldValue,
                 int newMaxLength,
                 int newSize)
          throws HtmlException
Constructor

Parameters:
newFieldName - field name
newFieldValue - field value
newMaxLength - maximum input length
newSize - maximum display size
Method Detail

display

protected void display(PrintWriter out,
                       int depth)
                throws HtmlException
Display the text field on the page

Specified by:
display in class HtmlElement
Parameters:
out - output stream
depth - the number of tabs to indent
Throws:
HtmlException - If the element (or it's contents) cannot be displayed

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.