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
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 Details
-
Constructor Details
-
ShadowDialog
public ShadowDialog()
-
-
Method Details
-
reset
-
getLatestDialog
-
setLatestDialog
-
show
-
dismiss
-
clickOn
public void clickOn(int viewId) -
setCanceledOnTouchOutside
-
isCancelable
public boolean isCancelable() -
isCancelableOnTouchOutside
public boolean isCancelableOnTouchOutside() -
getOnCancelListener
-
setOnCancelListener
-
hasBeenDismissed
public boolean hasBeenDismissed() -
getTitle
-
clickOnText
public void clickOnText(int textId) -
clickOnText
-
getShownDialogs
-
callOnCreate
-