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.HTMLCollection; 27 import org.w3c.dom.html.HTMLFormElement; 28 29 30 36 public final class HTMLFormElementImpl extends HTMLElementImpl implements HTMLFormElement { 37 38 39 public HTMLCollection getElements() { 40 if (_elements == null) { 41 _elements = new HTMLCollectionImpl( this, HTMLCollectionImpl.ELEMENT ); 42 } 43 return _elements; 44 } 45 46 47 public int getLength() { 48 return getElements().getLength(); 49 } 50 51 52 public String getName() { 53 return getAttribute( "name" ); 54 } 55 56 57 public void setName( String name ) { 58 setAttribute( "name", name ); 59 } 60 61 62 public String getAcceptCharset() { 63 return getAttribute( "accept-charset" ); 64 } 65 66 67 public void setAcceptCharset( String acceptCharset ) { 68 setAttribute( "accept-charset", acceptCharset ); 69 } 70 71 72 public String getAction() { 73 return getAttribute( "action" ); 74 } 75 76 77 public void setAction( String action ) { 78 setAttribute( "action", action ); 79 } 80 81 82 public String getEnctype() { 83 return getAttribute( "enctype" ); 84 } 85 86 87 public void setEnctype( String enctype ) { 88 setAttribute( "enctype", enctype ); 89 } 90 91 92 public String getMethod() { 93 return capitalize( getAttribute( "method" ) ); 94 } 95 96 97 public void setMethod( String method ) { 98 setAttribute( "method", method ); 99 } 100 101 102 public String getTarget() { 103 return getAttribute( "target" ); 104 } 105 106 107 public void setTarget( String target ) { 108 setAttribute( "target", target ); 109 } 110 111 112 public void submit() { 113 } 115 116 117 public void reset() { 118 } 120 121 122 127 public HTMLFormElementImpl( HTMLDocumentImpl owner, String name ) { 128 super( owner, "FORM" ); 129 } 130 131 132 135 private HTMLCollectionImpl _elements; 136 137 } 138 | Popular Tags |