WIMM Labs


com.wimm.framework.app
Class TextInputDialog

java.lang.Object
  extended by android.app.Dialog
      extended by com.wimm.framework.app.Dialog
          extended by com.wimm.framework.app.TextInputDialog
All Implemented Interfaces:
DialogInterface, KeyEvent.Callback, View.OnCreateContextMenuListener, Window.Callback

public class TextInputDialog
extends Dialog

This class provides a text entry Dialog.

Since:
WIMM SDK 1.0.0
See Also:
Dialog

Nested Class Summary
 
Nested classes/interfaces inherited from interface android.content.DialogInterface
DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, DialogInterface.OnMultiChoiceClickListener
 
Field Summary
 
Fields inherited from interface android.content.DialogInterface
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
 
Constructor Summary
TextInputDialog(Context context)
          Constructor.
TextInputDialog(Context context, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
          Constructor.
 
Method Summary
 String getText()
          Gets the text from the entry field in the dialog.
 void setAlphabet(String alphabet)
          Sets the alphabet to be used in the text selector.
 void setText(String text)
          Sets the text in the entry field in the dialog.
 
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, dismiss, dispatchKeyEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, isShowing, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextInputDialog

public TextInputDialog(Context context)
Constructor.

Parameters:
context - The Context.
Since:
WIMM SDK 1.0.0

TextInputDialog

public TextInputDialog(Context context,
                       boolean cancelable,
                       DialogInterface.OnCancelListener cancelListener)
Constructor.

Parameters:
context - The Context.
cancelable - A flag specifying whether the dialog can be cancelled.
cancelListener - The listener to inform when the dialog's cancel method is called.
Since:
WIMM SDK 1.0.0
Method Detail

setAlphabet

public void setAlphabet(String alphabet)
Sets the alphabet to be used in the text selector.

Parameters:
alphabet - The alphabet to be available in the text selector.
Since:
WIMM SDK 1.0.1

getText

public String getText()
Gets the text from the entry field in the dialog.

Since:
WIMM SDK 1.0.0

setText

public void setText(String text)
Sets the text in the entry field in the dialog.

Parameters:
text - A string to display in the text entry field.
Since:
WIMM SDK 1.0.0

WIMM Labs