1 57 package com.sun.org.apache.html.internal.dom; 58 59 60 import org.w3c.dom.html.HTMLTextAreaElement; 61 62 63 69 public class HTMLTextAreaElementImpl 70 extends HTMLElementImpl 71 implements HTMLTextAreaElement, HTMLFormControl 72 { 73 74 75 public String getDefaultValue() 76 { 77 return getAttribute( "default-value" ); 79 } 80 81 82 public void setDefaultValue( String defaultValue ) 83 { 84 setAttribute( "default-value", defaultValue ); 86 } 87 88 89 90 public String getAccessKey() 91 { 92 String accessKey; 93 94 accessKey = getAttribute( "accesskey" ); 96 if ( accessKey != null && accessKey.length() > 1 ) 97 accessKey = accessKey.substring( 0, 1 ); 98 return accessKey; 99 } 100 101 102 public void setAccessKey( String accessKey ) 103 { 104 if ( accessKey != null && accessKey.length() > 1 ) 106 accessKey = accessKey.substring( 0, 1 ); 107 setAttribute( "accesskey", accessKey ); 108 } 109 110 111 public int getCols() 112 { 113 return getInteger( getAttribute( "cols" ) ); 114 } 115 116 117 public void setCols( int cols ) 118 { 119 setAttribute( "cols", String.valueOf( cols ) ); 120 } 121 122 123 public boolean getDisabled() 124 { 125 return getBinary( "disabled" ); 126 } 127 128 129 public void setDisabled( boolean disabled ) 130 { 131 setAttribute( "disabled", disabled ); 132 } 133 134 135 public String getName() 136 { 137 return getAttribute( "name" ); 138 } 139 140 141 public void setName( String name ) 142 { 143 setAttribute( "name", name ); 144 } 145 146 147 public boolean getReadOnly() 148 { 149 return getBinary( "readonly" ); 150 } 151 152 153 public void setReadOnly( boolean readOnly ) 154 { 155 setAttribute( "readonly", readOnly ); 156 } 157 158 159 public int getRows() 160 { 161 return getInteger( getAttribute( "rows" ) ); 162 } 163 164 165 public void setRows( int rows ) 166 { 167 setAttribute( "rows", String.valueOf( rows ) ); 168 } 169 170 171 public int getTabIndex() 172 { 173 return getInteger( getAttribute( "tabindex" ) ); 174 } 175 176 177 public void setTabIndex( int tabIndex ) 178 { 179 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 180 } 181 182 183 public String getType() 184 { 185 return getAttribute( "type" ); 186 } 187 188 189 public String getValue() 190 { 191 return getAttribute( "value" ); 192 } 193 194 195 public void setValue( String value ) 196 { 197 setAttribute( "value", value ); 198 } 199 200 201 public void blur() 202 { 203 } 205 206 207 public void focus() 208 { 209 } 211 212 213 public void select() 214 { 215 } 217 218 219 224 public HTMLTextAreaElementImpl( HTMLDocumentImpl owner, String name ) 225 { 226 super( owner, name ); 227 } 228 229 230 } 231 232 | Popular Tags |