[1870] | 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.android.guimodel;
|
---|
| 16 |
|
---|
| 17 | import de.ugoe.cs.autoquest.eventcore.guimodel.ICheckBox;
|
---|
| 18 |
|
---|
| 19 | /*
|
---|
| 20 | * (non-Javadoc)
|
---|
| 21 | *
|
---|
| 22 | * @see http://developer.android.com/reference/android/widget/CompoundButton.html
|
---|
| 23 | */
|
---|
| 24 | /**
|
---|
| 25 | * <p>
|
---|
| 26 | * Class that represents compound buttons in Android GUIs. A button with two states, checked and
|
---|
| 27 | * unchecked. When the button is pressed or clicked, the state changes automatically.
|
---|
| 28 | * </p>
|
---|
| 29 | *
|
---|
| 30 | * @version 1.0
|
---|
| 31 | * @author Florian Unger
|
---|
| 32 | */
|
---|
| 33 | public class ANDROIDCompoundButton extends ANDROIDGUIElement implements ICheckBox {
|
---|
| 34 | /**
|
---|
| 35 | * <p>
|
---|
| 36 | * Id for object serialization.
|
---|
| 37 | * </p>
|
---|
| 38 | */
|
---|
| 39 | private static final long serialVersionUID = 1L;
|
---|
| 40 |
|
---|
| 41 | /**
|
---|
| 42 | * <p>
|
---|
| 43 | * Constructor. Creates a new ANDROIDCompoundButton.
|
---|
| 44 | * </p>
|
---|
| 45 | *
|
---|
| 46 | * @param specification
|
---|
| 47 | * specification of created GUI element
|
---|
| 48 | * @param parent
|
---|
| 49 | * parent of the created GUI element; null means that the element is a top-level
|
---|
| 50 | * window
|
---|
| 51 | */
|
---|
| 52 | public ANDROIDCompoundButton(ANDROIDGUIElementSpec specification, ANDROIDGUIElement parent) {
|
---|
| 53 | super(specification, parent);
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | /*
|
---|
| 57 | * (non-Javadoc)
|
---|
| 58 | *
|
---|
| 59 | * @see de.ugoe.cs.autoquest.plugin.android.guimodel.ANDROIDGUIElement#getElementDescriptor()
|
---|
| 60 | */
|
---|
| 61 | @Override
|
---|
| 62 | protected String getElementDescriptor() {
|
---|
| 63 | return "CompoundButton";
|
---|
| 64 | }
|
---|
| 65 | }
|
---|