1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.htmlunit.javascript.host.html;
16
17 import org.htmlunit.html.HtmlMarquee;
18 import org.htmlunit.javascript.configuration.JsxClass;
19 import org.htmlunit.javascript.configuration.JsxConstructor;
20 import org.htmlunit.javascript.configuration.JsxGetter;
21 import org.htmlunit.javascript.configuration.JsxSetter;
22
23
24
25
26
27
28
29 @JsxClass(domClass = HtmlMarquee.class)
30 public class HTMLMarqueeElement extends HTMLElement {
31
32
33
34
35 @Override
36 @JsxConstructor
37 public void jsConstructor() {
38 super.jsConstructor();
39 }
40
41
42
43
44
45 @JsxGetter
46 public int getWidth() {
47 final String value = getDomNodeOrDie().getAttributeDirect("width");
48 final Integer intValue = HTMLCanvasElement.getValue(value);
49 if (intValue != null) {
50 return intValue;
51 }
52 return 0;
53 }
54
55
56
57
58
59 @JsxSetter
60 public void setWidth(final int width) {
61 getDomNodeOrDie().setAttribute("width", Integer.toString(width));
62 }
63
64
65
66
67
68 @JsxGetter
69 public int getHeight() {
70 final String value = getDomNodeOrDie().getAttributeDirect("height");
71 final Integer intValue = HTMLCanvasElement.getValue(value);
72 if (intValue != null) {
73 return intValue;
74 }
75 return 0;
76 }
77
78
79
80
81
82 @JsxSetter
83 public void setHeight(final int height) {
84 getDomNodeOrDie().setAttribute("height", Integer.toString(height));
85 }
86
87
88
89
90
91 @JsxGetter
92 public String getBgColor() {
93 return getDomNodeOrDie().getAttribute("bgColor");
94 }
95
96
97
98
99
100 @JsxSetter
101 public void setBgColor(final String bgColor) {
102 setColorAttribute("bgColor", bgColor);
103 }
104
105 }