1 38 package com.gargoylesoftware.htmlunit.html; 39 40 import java.util.Map ; 41 42 53 public abstract class StyledElement extends HtmlElement { 54 55 61 protected StyledElement( final HtmlPage page, final Map attributes) { 62 super(page, attributes); 63 } 64 65 66 74 public final String getIdAttribute() { 75 return getAttributeValue("id"); 76 } 77 78 79 87 public final String getClassAttribute() { 88 return getAttributeValue("class"); 89 } 90 91 92 100 public final String getStyleAttribute() { 101 return getAttributeValue("style"); 102 } 103 104 105 113 public final String getTitleAttribute() { 114 return getAttributeValue("title"); 115 } 116 } 117 | Popular Tags |