com.xtremelabs.robolectric.shadows
Class ShadowAlertDialog.ShadowBuilder

java.lang.Object
  extended by com.xtremelabs.robolectric.shadows.ShadowAlertDialog.ShadowBuilder
Enclosing class:
ShadowAlertDialog

@Implements(value=android.app.AlertDialog.Builder.class)
public static class ShadowAlertDialog.ShadowBuilder
extends java.lang.Object

Shadows the android.app.AlertDialog.Builder class.


Constructor Summary
ShadowAlertDialog.ShadowBuilder()
           
 
Method Summary
 void __constructor__(android.content.Context context)
          just stashes the context for later use
 android.app.AlertDialog create()
           
 android.app.AlertDialog.Builder setCancelable(boolean cancelable)
           
 android.app.AlertDialog.Builder setItems(java.lang.CharSequence[] items, android.content.DialogInterface.OnClickListener listener)
           
 android.app.AlertDialog.Builder setMessage(java.lang.CharSequence message)
           
 android.app.AlertDialog.Builder setMultiChoiceItems(java.lang.CharSequence[] items, boolean[] checkedItems, android.content.DialogInterface.OnMultiChoiceClickListener listener)
           
 android.app.AlertDialog.Builder setNegativeButton(java.lang.CharSequence text, android.content.DialogInterface.OnClickListener listener)
           
 android.app.AlertDialog.Builder setNeutralButton(java.lang.CharSequence text, android.content.DialogInterface.OnClickListener listener)
           
 android.app.AlertDialog.Builder setPositiveButton(java.lang.CharSequence text, android.content.DialogInterface.OnClickListener listener)
           
 android.app.AlertDialog.Builder setSingleChoiceItems(java.lang.CharSequence[] items, int checkedItem, android.content.DialogInterface.OnClickListener listener)
           
 android.app.AlertDialog.Builder setTitle(java.lang.CharSequence title)
           
 android.app.AlertDialog.Builder setTitle(int titleId)
           
 android.app.AlertDialog show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowAlertDialog.ShadowBuilder

public ShadowAlertDialog.ShadowBuilder()
Method Detail

__constructor__

public void __constructor__(android.content.Context context)
just stashes the context for later use

Parameters:
context - the context

setItems

@Implementation
public android.app.AlertDialog.Builder setItems(java.lang.CharSequence[] items,
                                                               android.content.DialogInterface.OnClickListener listener)

setSingleChoiceItems

@Implementation
public android.app.AlertDialog.Builder setSingleChoiceItems(java.lang.CharSequence[] items,
                                                                           int checkedItem,
                                                                           android.content.DialogInterface.OnClickListener listener)

setMultiChoiceItems

@Implementation
public android.app.AlertDialog.Builder setMultiChoiceItems(java.lang.CharSequence[] items,
                                                                          boolean[] checkedItems,
                                                                          android.content.DialogInterface.OnMultiChoiceClickListener listener)

setTitle

@Implementation
public android.app.AlertDialog.Builder setTitle(java.lang.CharSequence title)

setTitle

@Implementation
public android.app.AlertDialog.Builder setTitle(int titleId)

setMessage

@Implementation
public android.app.AlertDialog.Builder setMessage(java.lang.CharSequence message)

setPositiveButton

@Implementation
public android.app.AlertDialog.Builder setPositiveButton(java.lang.CharSequence text,
                                                                        android.content.DialogInterface.OnClickListener listener)

setNegativeButton

@Implementation
public android.app.AlertDialog.Builder setNegativeButton(java.lang.CharSequence text,
                                                                        android.content.DialogInterface.OnClickListener listener)

setNeutralButton

@Implementation
public android.app.AlertDialog.Builder setNeutralButton(java.lang.CharSequence text,
                                                                       android.content.DialogInterface.OnClickListener listener)

setCancelable

@Implementation
public android.app.AlertDialog.Builder setCancelable(boolean cancelable)

create

@Implementation
public android.app.AlertDialog create()

show

@Implementation
public android.app.AlertDialog show()