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.jfc.guimodel; |
---|
16 | |
---|
17 | import de.ugoe.cs.autoquest.eventcore.guimodel.IFrame; |
---|
18 | import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; |
---|
19 | |
---|
20 | /** |
---|
21 | * <p> |
---|
22 | * Class that represents dialogs in JFC GUIs. |
---|
23 | * </p> |
---|
24 | * |
---|
25 | * @version 1.0 |
---|
26 | * @author Patrick Harms |
---|
27 | */ |
---|
28 | public class JFCDialog extends JFCGUIElement implements IFrame, IGUIView { |
---|
29 | |
---|
30 | /** |
---|
31 | * <p> |
---|
32 | * Id for object serialization. |
---|
33 | * </p> |
---|
34 | */ |
---|
35 | private static final long serialVersionUID = 1L; |
---|
36 | |
---|
37 | /** |
---|
38 | * <p> |
---|
39 | * Constructor. Creates a new JFCDialog. |
---|
40 | * </p> |
---|
41 | * |
---|
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 |
---|
47 | */ |
---|
48 | public JFCDialog(JFCGUIElementSpec specification, JFCGUIElement parent) { |
---|
49 | super(specification, parent); |
---|
50 | } |
---|
51 | |
---|
52 | /* |
---|
53 | * (non-Javadoc) |
---|
54 | * |
---|
55 | * @see de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCGUIElement#getElementDescriptor() |
---|
56 | */ |
---|
57 | @Override |
---|
58 | protected String getElementDescriptor() { |
---|
59 | return "Dialog"; |
---|
60 | } |
---|
61 | |
---|
62 | /* (non-Javadoc) |
---|
63 | * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView#isModal() |
---|
64 | */ |
---|
65 | @Override |
---|
66 | public boolean isModal() { |
---|
67 | return true; |
---|
68 | } |
---|
69 | |
---|
70 | } |
---|