KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lobobrowser > html > domimpl > HTMLHRElementImpl


1 package org.lobobrowser.html.domimpl;
2
3 import org.w3c.dom.html2.HTMLHRElement;
4
5 public class HTMLHRElementImpl extends HTMLAbstractUIElement implements HTMLHRElement {
6     public HTMLHRElementImpl(String JavaDoc name) {
7         super(name);
8     }
9
10     public String JavaDoc getAlign() {
11         return this.getAttribute("align");
12     }
13
14     public boolean getNoShade() {
15         return "noshade".equalsIgnoreCase(this.getAttribute("noshade"));
16     }
17
18     public String JavaDoc getSize() {
19         return this.getAttribute("size");
20     }
21
22     public String JavaDoc getWidth() {
23         return this.getAttribute("width");
24     }
25
26     public void setAlign(String JavaDoc align) {
27         this.setAttribute("align", align);
28     }
29
30     public void setNoShade(boolean noShade) {
31         this.setAttribute("noshade", noShade ? "noshade" : null);
32     }
33
34     public void setSize(String JavaDoc size) {
35         this.setAttribute("size", size);
36     }
37
38     public void setWidth(String JavaDoc width) {
39         this.setAttribute("width", width);
40     }
41 }
42
Popular Tags