1package com.xtremelabs.robolectric.shadows;
2
3import android.widget.CheckedTextView;
4import com.xtremelabs.robolectric.internal.Implementation;
5import com.xtremelabs.robolectric.internal.Implements;
6
7@SuppressWarnings({"UnusedDeclaration"})
8@Implements(CheckedTextView.class)
9public class ShadowCheckedTextView extends ShadowTextView {
10
11    private boolean checked;
12
13    @Implementation
14    public void toggle() {
15        checked = !checked;
16    }
17
18    @Implementation
19    public boolean isChecked() {
20        return checked;
21    }
22
23    @Implementation
24    public void setChecked(boolean checked) {
25        this.checked = checked;
26    }
27
28}
29