Debian Codegraph @

core/java/android/widget/Checkable.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package android.widget;
18
19 /**
20 * Defines an extension for views that make them checkable.
21 *
22 */
23 public interface Checkable {
24
25 /**
26 * Change the checked state of the view
27 *
28 * @param checked The new checked state
29 */
30 void setChecked(boolean checked);
31
32 /**
33 * @return The current checked state of the view
34 */
35 boolean isChecked();
36
37 /**
38 * Change the checked state of the view to the inverse of its current state
39 *
40 */
41 void toggle();
42 }