Package org.robolectric.shadows
Class ShadowDialog
- java.lang.Object
-
- org.robolectric.shadows.ShadowDialog
-
- Direct Known Subclasses:
ShadowAlertDialog
@Implements(android.app.Dialog.class) public class ShadowDialog extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CharSequence
title
-
Constructor Summary
Constructors Constructor Description ShadowDialog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
callOnCreate(Bundle bundle)
void
clickOn(int viewId)
void
clickOnText(int textId)
void
clickOnText(String text)
protected void
dismiss()
static Dialog
getLatestDialog()
DialogInterface.OnCancelListener
getOnCancelListener()
static List<Dialog>
getShownDialogs()
CharSequence
getTitle()
boolean
hasBeenDismissed()
boolean
isCancelable()
boolean
isCancelableOnTouchOutside()
static void
reset()
protected void
setCanceledOnTouchOutside(boolean flag)
static void
setLatestDialog(ShadowDialog dialog)
protected void
setOnCancelListener(DialogInterface.OnCancelListener listener)
protected void
show()
-
-
-
Field Detail
-
title
protected CharSequence title
-
-
Method Detail
-
reset
@Resetter public static void reset()
-
getLatestDialog
public static Dialog getLatestDialog()
-
setLatestDialog
public static void setLatestDialog(ShadowDialog dialog)
-
show
@Implementation protected void show()
-
dismiss
@Implementation protected void dismiss()
-
clickOn
public void clickOn(int viewId)
-
setCanceledOnTouchOutside
@Implementation protected void setCanceledOnTouchOutside(boolean flag)
-
isCancelable
public boolean isCancelable()
-
isCancelableOnTouchOutside
public boolean isCancelableOnTouchOutside()
-
getOnCancelListener
public DialogInterface.OnCancelListener getOnCancelListener()
-
setOnCancelListener
@Implementation protected void setOnCancelListener(DialogInterface.OnCancelListener listener)
-
hasBeenDismissed
public boolean hasBeenDismissed()
-
getTitle
public CharSequence getTitle()
-
clickOnText
public void clickOnText(int textId)
-
clickOnText
public void clickOnText(String text)
-
callOnCreate
public void callOnCreate(Bundle bundle)
-
-