1 16 package org.apache.html.dom; 17 18 import org.w3c.dom.html.HTMLTextAreaElement; 19 20 27 public class HTMLTextAreaElementImpl 28 extends HTMLElementImpl 29 implements HTMLTextAreaElement, HTMLFormControl 30 { 31 32 private static final long serialVersionUID = 3257852073558357816L; 33 34 public String getDefaultValue() 35 { 36 return getAttribute( "default-value" ); 38 } 39 40 41 public void setDefaultValue( String defaultValue ) 42 { 43 setAttribute( "default-value", defaultValue ); 45 } 46 47 48 49 public String getAccessKey() 50 { 51 String accessKey; 52 53 accessKey = getAttribute( "accesskey" ); 55 if ( accessKey != null && accessKey.length() > 1 ) 56 accessKey = accessKey.substring( 0, 1 ); 57 return accessKey; 58 } 59 60 61 public void setAccessKey( String accessKey ) 62 { 63 if ( accessKey != null && accessKey.length() > 1 ) 65 accessKey = accessKey.substring( 0, 1 ); 66 setAttribute( "accesskey", accessKey ); 67 } 68 69 70 public int getCols() 71 { 72 return getInteger( getAttribute( "cols" ) ); 73 } 74 75 76 public void setCols( int cols ) 77 { 78 setAttribute( "cols", String.valueOf( cols ) ); 79 } 80 81 82 public boolean getDisabled() 83 { 84 return getBinary( "disabled" ); 85 } 86 87 88 public void setDisabled( boolean disabled ) 89 { 90 setAttribute( "disabled", disabled ); 91 } 92 93 94 public String getName() 95 { 96 return getAttribute( "name" ); 97 } 98 99 100 public void setName( String name ) 101 { 102 setAttribute( "name", name ); 103 } 104 105 106 public boolean getReadOnly() 107 { 108 return getBinary( "readonly" ); 109 } 110 111 112 public void setReadOnly( boolean readOnly ) 113 { 114 setAttribute( "readonly", readOnly ); 115 } 116 117 118 public int getRows() 119 { 120 return getInteger( getAttribute( "rows" ) ); 121 } 122 123 124 public void setRows( int rows ) 125 { 126 setAttribute( "rows", String.valueOf( rows ) ); 127 } 128 129 130 public int getTabIndex() 131 { 132 return getInteger( getAttribute( "tabindex" ) ); 133 } 134 135 136 public void setTabIndex( int tabIndex ) 137 { 138 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 139 } 140 141 142 public String getType() 143 { 144 return getAttribute( "type" ); 145 } 146 147 148 public String getValue() 149 { 150 return getAttribute( "value" ); 151 } 152 153 154 public void setValue( String value ) 155 { 156 setAttribute( "value", value ); 157 } 158 159 160 public void blur() 161 { 162 } 164 165 166 public void focus() 167 { 168 } 170 171 172 public void select() 173 { 174 } 176 177 178 183 public HTMLTextAreaElementImpl( HTMLDocumentImpl owner, String name ) 184 { 185 super( owner, name ); 186 } 187 188 189 } 190 191 | Popular Tags |