Expresso 5-6

com.jcorporate.expresso.services.html
Class PasswordField

java.lang.Object
  extended bycom.jcorporate.expresso.services.html.HtmlElement
      extended bycom.jcorporate.expresso.services.html.TextField
          extended bycom.jcorporate.expresso.services.html.PasswordField

public class PasswordField
extends TextField

An HTML password field

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

Field Summary
 
Fields inherited from class com.jcorporate.expresso.services.html.TextField
fieldName, fieldValue, maxLength, size
 
Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement
attributes, contents, cSSClass, cSSID
 
Constructor Summary
PasswordField()
          Constructor
PasswordField(String newFieldName, String newFieldValue, int newMaxLength, int newSize)
          Constructor Create a new password field with the given name, value and sizes
 
Method Summary
protected  void display(PrintWriter out, int depth)
          Display the password field to the client
 
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
 

Constructor Detail

PasswordField

public PasswordField()
              throws HtmlException
Constructor

Throws:
HtmlException - If the superclass constructor fails

PasswordField

public PasswordField(String newFieldName,
                     String newFieldValue,
                     int newMaxLength,
                     int newSize)
              throws HtmlException
Constructor Create a new password field with the given name, value and sizes

Parameters:
newFieldName - Name of the field
newFieldValue - Initial value of the field
newMaxLength - Maximum data length of the field
newSize - Visual size of the field
Throws:
HtmlException - If the field cannot be created
Method Detail

display

protected void display(PrintWriter out,
                       int depth)
                throws HtmlException
Display the password field to the client

Overrides:
display in class TextField
Parameters:
depth - the number of tabs to indent
out - PrintWriter to the client
Throws:
HtmlException - If the field cannot be displayed

Expresso 5-6

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