[961] | 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.IFrame; |
---|
| 18 | |
---|
| 19 | /** |
---|
| 20 | * <p> |
---|
| 21 | * TODO comment |
---|
| 22 | * </p> |
---|
| 23 | * |
---|
| 24 | * @author Patrick Harms |
---|
| 25 | */ |
---|
| 26 | public class HTMLPage extends HTMLGUIElement implements IFrame { |
---|
| 27 | |
---|
| 28 | /** */ |
---|
| 29 | private static final long serialVersionUID = 1L; |
---|
| 30 | |
---|
| 31 | /** |
---|
| 32 | * <p> |
---|
| 33 | * TODO: comment |
---|
| 34 | * </p> |
---|
| 35 | * |
---|
| 36 | * @param specification |
---|
| 37 | * @param parent |
---|
| 38 | */ |
---|
| 39 | public HTMLPage(HTMLPageSpec specification, HTMLServer parent) { |
---|
| 40 | super(specification, parent); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | /* |
---|
| 44 | * (non-Javadoc) |
---|
| 45 | * |
---|
| 46 | * @see java.lang.Object#toString() |
---|
| 47 | */ |
---|
| 48 | @Override |
---|
| 49 | public String toString() { |
---|
| 50 | return "Page(" + getPagePath() + ", \"" + getPageTitle() + "\")"; |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | /* |
---|
| 54 | * (non-Javadoc) |
---|
| 55 | * |
---|
| 56 | * @see de.ugoe.cs.autoquest.plugin.html.guimodel.HTMLGUIElement#getElementDescriptor() |
---|
| 57 | */ |
---|
| 58 | @Override |
---|
| 59 | protected String getElementDescriptor() { |
---|
| 60 | return "Page"; |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | /** |
---|
| 64 | * <p> |
---|
| 65 | * TODO: comment |
---|
| 66 | * </p> |
---|
| 67 | * |
---|
| 68 | * @return |
---|
| 69 | */ |
---|
| 70 | HTMLServerSpec getServer() { |
---|
| 71 | return ((HTMLPageSpec) super.getSpecification()).getServer(); |
---|
| 72 | } |
---|
| 73 | |
---|
| 74 | /** |
---|
| 75 | * <p> |
---|
| 76 | * TODO: comment |
---|
| 77 | * </p> |
---|
| 78 | * |
---|
| 79 | * @return |
---|
| 80 | */ |
---|
| 81 | String getPagePath() { |
---|
| 82 | return ((HTMLPageSpec) super.getSpecification()).getPagePath(); |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | /** |
---|
| 86 | * <p> |
---|
| 87 | * TODO: comment |
---|
| 88 | * </p> |
---|
| 89 | * |
---|
| 90 | * @return |
---|
| 91 | */ |
---|
| 92 | String getPageTitle() { |
---|
| 93 | return ((HTMLPageSpec) super.getSpecification()).getPageTitle(); |
---|
| 94 | } |
---|
| 95 | |
---|
| 96 | } |
---|