1 20 21 22 package org.ozoneDB.xml.dom.html; 23 24 25 import org.ozoneDB.xml.dom.ElementImpl; 26 import org.w3c.dom.html.HTMLTextAreaElement; 27 28 29 35 public final class HTMLTextAreaElementImpl extends HTMLElementImpl implements HTMLTextAreaElement, HTMLFormControl { 36 37 38 public String getDefaultValue() { 39 return getAttribute( "default-value" ); 41 } 42 43 44 public void setDefaultValue( String defaultValue ) { 45 setAttribute( "default-value", defaultValue ); 47 } 48 49 50 public String getAccessKey() { 51 String accessKey; 52 53 accessKey = getAttribute( "accesskey" ); 55 if (accessKey != null && accessKey.length() > 1) { 56 accessKey = accessKey.substring( 0, 1 ); 57 } 58 return accessKey; 59 } 60 61 62 public void setAccessKey( String accessKey ) { 63 if (accessKey != null && accessKey.length() > 1) { 65 accessKey = accessKey.substring( 0, 1 ); 66 } 67 setAttribute( "accesskey", accessKey ); 68 } 69 70 71 public int getCols() { 72 return toInteger( getAttribute( "cols" ) ); 73 } 74 75 76 public void setCols( int cols ) { 77 setAttribute( "cols", String.valueOf( cols ) ); 78 } 79 80 81 public boolean getDisabled() { 82 return getAttribute( "disabled" ) != null; 83 } 84 85 86 public void setDisabled( boolean disabled ) { 87 setAttribute( "disabled", disabled ? "" : null ); 88 } 89 90 91 public String getName() { 92 return getAttribute( "name" ); 93 } 94 95 96 public void setName( String name ) { 97 setAttribute( "name", name ); 98 } 99 100 101 public boolean getReadOnly() { 102 return getAttribute( "readonly" ) != null; 103 } 104 105 106 public void setReadOnly( boolean readOnly ) { 107 setAttribute( "readonly", readOnly ? "" : null ); 108 } 109 110 111 public int getRows() { 112 return toInteger( getAttribute( "rows" ) ); 113 } 114 115 116 public void setRows( int rows ) { 117 setAttribute( "rows", String.valueOf( rows ) ); 118 } 119 120 121 public int getTabIndex() { 122 return toInteger( getAttribute( "tabindex" ) ); 123 } 124 125 126 public void setTabIndex( int tabIndex ) { 127 setAttribute( "tabindex", String.valueOf( tabIndex ) ); 128 } 129 130 131 public String getType() { 132 return getAttribute( "type" ); 133 } 134 135 136 public String getValue() { 137 return getAttribute( "value" ); 138 } 139 140 141 public void setValue( String value ) { 142 setAttribute( "value", value ); 143 } 144 145 146 public void blur() { 147 } 149 150 151 public void focus() { 152 } 154 155 156 public void select() { 157 } 159 160 161 166 public HTMLTextAreaElementImpl( HTMLDocumentImpl owner, String name ) { 167 super( owner, "TEXTAREA" ); 168 } 169 170 171 } 172 | Popular Tags |