com.xtremelabs.robolectric.shadows
Class ShadowCompoundButton
java.lang.Object
com.xtremelabs.robolectric.shadows.ShadowView
com.xtremelabs.robolectric.shadows.ShadowTextView
com.xtremelabs.robolectric.shadows.ShadowCompoundButton
- All Implemented Interfaces:
- android.widget.Checkable
@Implements(value=android.widget.CompoundButton.class)
public class ShadowCompoundButton
- extends ShadowTextView
- implements android.widget.Checkable
Shadows the android.widget.CompoundButton
class.
Keeps track of whether or not its "checked" state is set and deals with listeners in an appropriate way.
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowTextView |
equals, getCompoundDrawablePadding, getCompoundDrawables, getCompoundDrawablesImpl, getHint, getText, getTextColorHexValue, getTextSize, getUrls, hashCode, innerText, isAutoLinkPhoneNumbers, length, onKeyDown, setAutoLinkMask, setCompoundDrawablePadding, setCompoundDrawables, setCompoundDrawablesWithIntrinsicBounds, setCompoundDrawablesWithIntrinsicBounds, setHint, setText, setText, setTextColor, setTextSize |
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowView |
__constructor__, __constructor__, clearFocus, clearWasInvalidated, dispatchTouchEvent, dump, dump, dumpFirstPart, dumpIndent, findViewById, getBackgroundResourceId, getBottom, getContext, getHeight, getId, getLayoutParams, getLeft, getMeasuredWidth, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRootView, getTag, getTag, getTop, getVisibility, getWidth, hasFocus, inflate, invalidate, isClickable, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isSelected, layout, requestFocus, requestFocus, setBackgroundResource, setBottom, setClickable, setEnabled, setFocusable, setFocusableInTouchMode, setFocused, setId, setLayoutParams, setLeft, setOnClickListener, setOnFocusChangeListener, setOnKeyListener, setOnTouchListener, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setRight, setSelected, setTag, setTag, setTop, setViewFocus, setVisibility, wasInvalidated |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ShadowCompoundButton
public ShadowCompoundButton()
toggle
@Implementation
public void toggle()
- Specified by:
toggle
in interface android.widget.Checkable
performClick
@Implementation
public boolean performClick()
- Overrides:
performClick
in class ShadowView
isChecked
@Implementation
public boolean isChecked()
- Specified by:
isChecked
in interface android.widget.Checkable
setChecked
@Implementation
public void setChecked(boolean checked)
- Specified by:
setChecked
in interface android.widget.Checkable
setOnCheckedChangeListener
@Implementation
public void setOnCheckedChangeListener(android.widget.CompoundButton.OnCheckedChangeListener listener)