1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
2 | // |
---|
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
4 | // you may not use this file except in compliance with the License. |
---|
5 | // You may obtain a copy of the License at |
---|
6 | // |
---|
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
8 | // |
---|
9 | // Unless required by applicable law or agreed to in writing, software |
---|
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
12 | // See the License for the specific language governing permissions and |
---|
13 | // limitations under the License. |
---|
14 | |
---|
15 | package de.ugoe.cs.autoquest.plugin.html.guimodel; |
---|
16 | |
---|
17 | import de.ugoe.cs.autoquest.eventcore.guimodel.ICanvas; |
---|
18 | |
---|
19 | /** |
---|
20 | * <p> |
---|
21 | * a representation for a canvas on a web page. |
---|
22 | * </p> |
---|
23 | * |
---|
24 | * @author Patrick Harms |
---|
25 | */ |
---|
26 | public class HTMLCanvas extends HTMLPageElement implements ICanvas { |
---|
27 | |
---|
28 | /** |
---|
29 | * <p> |
---|
30 | * default serial version UID |
---|
31 | * </p> |
---|
32 | */ |
---|
33 | private static final long serialVersionUID = 1L; |
---|
34 | |
---|
35 | /** |
---|
36 | * <p> |
---|
37 | * initializes the canvas with its specification and its parent |
---|
38 | * </p> |
---|
39 | * |
---|
40 | * @param specification the specification for the represented tag |
---|
41 | * @param parent the parent of the GUI element |
---|
42 | */ |
---|
43 | public HTMLCanvas(HTMLPageElementSpec specification, HTMLGUIElement parent) { |
---|
44 | super(specification, parent); |
---|
45 | } |
---|
46 | |
---|
47 | /* (non-Javadoc) |
---|
48 | * @see de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLGUIElement#getElementDescriptor() |
---|
49 | */ |
---|
50 | @Override |
---|
51 | protected String getElementDescriptor() { |
---|
52 | return "Canvas"; |
---|
53 | } |
---|
54 | |
---|
55 | } |
---|