1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 package org.vectomatic.dom.svg;
31
32 import org.vectomatic.dom.svg.events.ActivateEvent;
33 import org.vectomatic.dom.svg.events.ActivateHandler;
34 import org.vectomatic.dom.svg.events.FocusInEvent;
35 import org.vectomatic.dom.svg.events.FocusInHandler;
36 import org.vectomatic.dom.svg.events.FocusOutEvent;
37 import org.vectomatic.dom.svg.events.FocusOutHandler;
38 import org.vectomatic.dom.svg.events.HasGraphicalHandlers;
39 import org.vectomatic.dom.svg.impl.SVGSymbolElement;
40 import org.vectomatic.dom.svg.itf.ISVGContainerElement;
41 import org.vectomatic.dom.svg.itf.ISVGExternalResourcesRequired;
42 import org.vectomatic.dom.svg.itf.ISVGFitToViewBox;
43 import org.vectomatic.dom.svg.itf.ISVGLangSpace;
44 import org.vectomatic.dom.svg.itf.ISVGStylable;
45 import org.vectomatic.dom.svg.utils.DOMHelper;
46 import org.vectomatic.dom.svg.utils.SVGConstants;
47
48 import com.google.gwt.core.client.JavaScriptException;
49 import com.google.gwt.dom.client.TagName;
50 import com.google.gwt.event.dom.client.ClickEvent;
51 import com.google.gwt.event.dom.client.ClickHandler;
52 import com.google.gwt.event.dom.client.DragEndEvent;
53 import com.google.gwt.event.dom.client.DragEndHandler;
54 import com.google.gwt.event.dom.client.DragEnterEvent;
55 import com.google.gwt.event.dom.client.DragEnterHandler;
56 import com.google.gwt.event.dom.client.DragEvent;
57 import com.google.gwt.event.dom.client.DragHandler;
58 import com.google.gwt.event.dom.client.DragLeaveEvent;
59 import com.google.gwt.event.dom.client.DragLeaveHandler;
60 import com.google.gwt.event.dom.client.DragOverEvent;
61 import com.google.gwt.event.dom.client.DragOverHandler;
62 import com.google.gwt.event.dom.client.DragStartEvent;
63 import com.google.gwt.event.dom.client.DragStartHandler;
64 import com.google.gwt.event.dom.client.DropEvent;
65 import com.google.gwt.event.dom.client.DropHandler;
66 import com.google.gwt.event.dom.client.LoadEvent;
67 import com.google.gwt.event.dom.client.LoadHandler;
68 import com.google.gwt.event.dom.client.MouseDownEvent;
69 import com.google.gwt.event.dom.client.MouseDownHandler;
70 import com.google.gwt.event.dom.client.MouseMoveEvent;
71 import com.google.gwt.event.dom.client.MouseMoveHandler;
72 import com.google.gwt.event.dom.client.MouseOutEvent;
73 import com.google.gwt.event.dom.client.MouseOutHandler;
74 import com.google.gwt.event.dom.client.MouseOverEvent;
75 import com.google.gwt.event.dom.client.MouseOverHandler;
76 import com.google.gwt.event.dom.client.MouseUpEvent;
77 import com.google.gwt.event.dom.client.MouseUpHandler;
78 import com.google.gwt.event.dom.client.TouchCancelEvent;
79 import com.google.gwt.event.dom.client.TouchCancelHandler;
80 import com.google.gwt.event.dom.client.TouchEndEvent;
81 import com.google.gwt.event.dom.client.TouchEndHandler;
82 import com.google.gwt.event.dom.client.TouchMoveEvent;
83 import com.google.gwt.event.dom.client.TouchMoveHandler;
84 import com.google.gwt.event.dom.client.TouchStartEvent;
85 import com.google.gwt.event.dom.client.TouchStartHandler;
86 import com.google.gwt.event.shared.HandlerRegistration;
87
88
89
90
91
92
93 @TagName("symbol")
94 public class OMSVGSymbolElement extends OMSVGElement implements HasGraphicalHandlers, ISVGLangSpace, ISVGExternalResourcesRequired, ISVGStylable, ISVGFitToViewBox, ISVGContainerElement {
95 public OMSVGSymbolElement() {
96 this((SVGSymbolElement)DOMHelper.createElementNS(DOMHelper.getCurrentDocument(), SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_SYMBOL_TAG).cast());
97 }
98
99 protected OMSVGSymbolElement(SVGSymbolElement ot) {
100 super(ot);
101 }
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117 public final OMSVGAnimatedBoolean getExternalResourcesRequired() {
118 return ((SVGSymbolElement)ot).getExternalResourcesRequired();
119 }
120
121
122
123
124
125
126 public final OMSVGAnimatedRect getViewBox() {
127 return ((SVGSymbolElement)ot).getViewBox();
128 }
129
130
131
132
133 public final OMSVGAnimatedPreserveAspectRatio getPreserveAspectRatio() {
134 return ((SVGSymbolElement)ot).getPreserveAspectRatio();
135 }
136
137
138
139
140
141 public final String getXmllang() {
142 return ((SVGSymbolElement)ot).getXmllang();
143 }
144
145
146
147
148
149
150 public final void setXmllang(java.lang.String value) throws JavaScriptException {
151 ((SVGSymbolElement)ot).setXmllang(value);
152 }
153
154
155
156 public final String getXmlspace() {
157 return ((SVGSymbolElement)ot).getXmlspace();
158 }
159
160
161
162
163
164
165 public final void setXmlspace(java.lang.String value) throws JavaScriptException {
166 ((SVGSymbolElement)ot).setXmlspace(value);
167 }
168
169 @Override
170 public final HandlerRegistration addClickHandler(ClickHandler handler) {
171 return addDomHandler(handler, ClickEvent.getType());
172 }
173 @Override
174 public final HandlerRegistration addDragEndHandler(DragEndHandler handler) {
175 return addDomHandler(handler, DragEndEvent.getType());
176 }
177 @Override
178 public final HandlerRegistration addDragEnterHandler(DragEnterHandler handler) {
179 return addDomHandler(handler, DragEnterEvent.getType());
180 }
181 @Override
182 public final HandlerRegistration addDragHandler(DragHandler handler) {
183 return addDomHandler(handler, DragEvent.getType());
184 }
185 @Override
186 public final HandlerRegistration addDragLeaveHandler(DragLeaveHandler handler) {
187 return addDomHandler(handler, DragLeaveEvent.getType());
188 }
189 @Override
190 public final HandlerRegistration addDragOverHandler(DragOverHandler handler) {
191 return addDomHandler(handler, DragOverEvent.getType());
192 }
193 @Override
194 public final HandlerRegistration addDragStartHandler(DragStartHandler handler) {
195 return addDomHandler(handler, DragStartEvent.getType());
196 }
197 @Override
198 public final HandlerRegistration addDropHandler(DropHandler handler) {
199 return addDomHandler(handler, DropEvent.getType());
200 }
201 @Override
202 public final HandlerRegistration addLoadHandler(LoadHandler handler) {
203 return addDomHandler(handler, LoadEvent.getType());
204 }
205 @Override
206 public final HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
207 return addDomHandler(handler, MouseDownEvent.getType());
208 }
209 @Override
210 public final HandlerRegistration addMouseMoveHandler(MouseMoveHandler handler) {
211 return addDomHandler(handler, MouseMoveEvent.getType());
212 }
213 @Override
214 public final HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
215 return addDomHandler(handler, MouseOutEvent.getType());
216 }
217 @Override
218 public final HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
219 return addDomHandler(handler, MouseOverEvent.getType());
220 }
221 @Override
222 public final HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
223 return addDomHandler(handler, MouseUpEvent.getType());
224 }
225 @Override
226 public final HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler) {
227 return addDomHandler(handler, TouchCancelEvent.getType());
228 }
229 @Override
230 public final HandlerRegistration addTouchEndHandler(TouchEndHandler handler) {
231 return addDomHandler(handler, TouchEndEvent.getType());
232 }
233 @Override
234 public final HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) {
235 return addDomHandler(handler, TouchMoveEvent.getType());
236 }
237 @Override
238 public final HandlerRegistration addTouchStartHandler(TouchStartHandler handler) {
239 return addDomHandler(handler, TouchStartEvent.getType());
240 }
241 @Override
242 public final HandlerRegistration addActivateHandler(ActivateHandler handler) {
243 return addDomHandler(handler, ActivateEvent.getType());
244 }
245 @Override
246 public final HandlerRegistration addFocusInHandler(FocusInHandler handler) {
247 return addDomHandler(handler, FocusInEvent.getType());
248 }
249 @Override
250 public final HandlerRegistration addFocusOutHandler(FocusOutHandler handler) {
251 return addDomHandler(handler, FocusOutEvent.getType());
252 }
253 }