[927] | 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. |
---|
[835] | 14 | |
---|
[922] | 15 | package de.ugoe.cs.autoquest.plugin.jfc.guimodel; |
---|
[573] | 16 | |
---|
[922] | 17 | import de.ugoe.cs.autoquest.eventcore.guimodel.IFrame; |
---|
[1876] | 18 | import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; |
---|
[573] | 19 | |
---|
| 20 | /** |
---|
[835] | 21 | * <p> |
---|
| 22 | * Class that represents frames in JFC GUIs. |
---|
| 23 | * </p> |
---|
[573] | 24 | * |
---|
[835] | 25 | * @version 1.0 |
---|
| 26 | * @author Patrick Harms |
---|
[573] | 27 | */ |
---|
[1876] | 28 | public class JFCFrame extends JFCGUIElement implements IFrame, IGUIView { |
---|
[573] | 29 | |
---|
[835] | 30 | /** |
---|
| 31 | * <p> |
---|
| 32 | * Id for object serialization. |
---|
| 33 | * </p> |
---|
| 34 | */ |
---|
[573] | 35 | private static final long serialVersionUID = 1L; |
---|
| 36 | |
---|
| 37 | /** |
---|
[835] | 38 | * <p> |
---|
| 39 | * Constructor. Creates a new JFCFrame. |
---|
| 40 | * </p> |
---|
[573] | 41 | * |
---|
[835] | 42 | * @param specification |
---|
| 43 | * specification of created GUI element |
---|
| 44 | * @param parent |
---|
| 45 | * parent of the created GUI element; null means that the element is a top-level |
---|
| 46 | * window |
---|
[573] | 47 | */ |
---|
[605] | 48 | public JFCFrame(JFCGUIElementSpec specification, JFCGUIElement parent) { |
---|
| 49 | super(specification, parent); |
---|
[573] | 50 | } |
---|
| 51 | |
---|
[835] | 52 | /* |
---|
| 53 | * (non-Javadoc) |
---|
| 54 | * |
---|
[922] | 55 | * @see de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCGUIElement#getElementDescriptor() |
---|
[835] | 56 | */ |
---|
[573] | 57 | @Override |
---|
[606] | 58 | protected String getElementDescriptor() { |
---|
| 59 | return "Frame"; |
---|
[573] | 60 | } |
---|
| 61 | |
---|
[1876] | 62 | /* (non-Javadoc) |
---|
| 63 | * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView#isModal() |
---|
| 64 | */ |
---|
| 65 | @Override |
---|
| 66 | public boolean isModal() { |
---|
| 67 | return false; |
---|
| 68 | } |
---|
| 69 | |
---|
[573] | 70 | } |
---|