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.HTMLOptGroupElement; 27 28 29 35 public final class HTMLOptGroupElementImpl extends HTMLElementImpl implements HTMLOptGroupElement { 36 37 38 public boolean getDisabled() { 39 return getAttribute( "disabled" ) != null; 40 } 41 42 43 public void setDisabled( boolean disabled ) { 44 setAttribute( "disabled", disabled ? "" : null ); 45 } 46 47 48 public String getLabel() { 49 return capitalize( getAttribute( "label" ) ); 50 } 51 52 53 public void setLabel( String label ) { 54 setAttribute( "label", label ); 55 } 56 57 58 63 public HTMLOptGroupElementImpl( HTMLDocumentImpl owner, String name ) { 64 super( owner, "OPTGROUP" ); 65 } 66 67 68 } 69 | Popular Tags |