1 64 65 package com.jcorporate.expresso.services.html; 66 67 72 73 import java.io.PrintWriter ; 74 75 76 82 public class PasswordField 83 extends TextField { 84 89 public PasswordField() 90 throws HtmlException { 91 super(); 92 } 93 94 104 public PasswordField(String newFieldName, String newFieldValue, 105 int newMaxLength, int newSize) 106 throws HtmlException { 107 super(newFieldName, newFieldValue, newMaxLength, newSize); 108 } 109 110 117 protected void display(PrintWriter out, int depth) 118 throws HtmlException { 119 this.padWithTabs(out, depth); 120 out.print("<input"); 121 122 if (cSSClass != null) { 123 out.print(" class=\"" + cSSClass + "\""); 124 } 125 if (cSSID != null) { 126 out.print(" ID=\"" + cSSID + "\""); 127 } 128 129 out.println(" type=password name=" + fieldName + " value=\"" + 130 fieldValue + "\" maxlength=" + maxLength + " size=" + 131 size + ">"); 132 setDisplayed(); 133 } 134 135 136 } 137 138 | Popular Tags |