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.HTMLStyleElement; 27 28 29 35 public final class HTMLStyleElementImpl extends HTMLElementImpl implements HTMLStyleElement { 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 getMedia() { 49 return getAttribute( "media" ); 50 } 51 52 53 public void setMedia( String media ) { 54 setAttribute( "media", media ); 55 } 56 57 58 public String getType() { 59 return getAttribute( "type" ); 60 } 61 62 63 public void setType( String type ) { 64 setAttribute( "type", type ); 65 } 66 67 68 73 public HTMLStyleElementImpl( HTMLDocumentImpl owner, String name ) { 74 super( owner, "STYLE" ); 75 } 76 77 78 } 79 | Popular Tags |