android.app
Class DatePickerDialog

java.lang.Object
  extended by android.app.Dialog
      extended by android.app.AlertDialog
          extended by android.app.DatePickerDialog
All Implemented Interfaces:
DialogInterface, DialogInterface.OnClickListener, KeyEvent.Callback, View.OnCreateContextMenuListener, Window.Callback, DatePicker.OnDateChangedListener

public class DatePickerDialog
extends AlertDialog
implements DialogInterface.OnClickListener, DatePicker.OnDateChangedListener


Nested Class Summary
static interface DatePickerDialog.OnDateSetListener
           
 
Nested classes/interfaces inherited from class android.app.AlertDialog
AlertDialog.Builder
 
Nested classes/interfaces inherited from interface android.content.DialogInterface
DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, DialogInterface.OnMultiChoiceClickListener, DialogInterface.OnShowListener
 
Field Summary
 
Fields inherited from class android.app.AlertDialog
THEME_DEVICE_DEFAULT_DARK, THEME_DEVICE_DEFAULT_LIGHT, THEME_HOLO_DARK, THEME_HOLO_LIGHT, THEME_TRADITIONAL
 
Fields inherited from interface android.content.DialogInterface
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
 
Constructor Summary
DatePickerDialog(Context context, DatePickerDialog.OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth)
           
DatePickerDialog(Context context, int theme, DatePickerDialog.OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth)
           
 
Method Summary
 DatePicker getDatePicker()
           
 void onClick(DialogInterface dialog, int which)
           
 void onDateChanged(DatePicker view, int year, int month, int day)
           
 void onRestoreInstanceState(Bundle savedInstanceState)
           
 Bundle onSaveInstanceState()
           
 void updateDate(int year, int monthOfYear, int dayOfMonth)
           
 
Methods inherited from class android.app.AlertDialog
getButton, getListView, onCreate, onKeyDown, onKeyUp, setButton, setButton, setButton, setButton, setButton2, setButton2, setButton3, setButton3, setCustomTitle, setIcon, setIcon, setIconAttribute, setInverseBackgroundForced, setMessage, setTitle, setView, setView
 
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.content.DialogInterface
cancel, dismiss
 

Constructor Detail

DatePickerDialog

public DatePickerDialog(Context context,
                        DatePickerDialog.OnDateSetListener callBack,
                        int year,
                        int monthOfYear,
                        int dayOfMonth)

DatePickerDialog

public DatePickerDialog(Context context,
                        int theme,
                        DatePickerDialog.OnDateSetListener callBack,
                        int year,
                        int monthOfYear,
                        int dayOfMonth)
Method Detail

onClick

public void onClick(DialogInterface dialog,
                    int which)
Specified by:
onClick in interface DialogInterface.OnClickListener

onDateChanged

public void onDateChanged(DatePicker view,
                          int year,
                          int month,
                          int day)
Specified by:
onDateChanged in interface DatePicker.OnDateChangedListener

getDatePicker

public DatePicker getDatePicker()

updateDate

public void updateDate(int year,
                       int monthOfYear,
                       int dayOfMonth)

onSaveInstanceState

public Bundle onSaveInstanceState()
Overrides:
onSaveInstanceState in class Dialog

onRestoreInstanceState

public void onRestoreInstanceState(Bundle savedInstanceState)
Overrides:
onRestoreInstanceState in class Dialog


Copyright © 2008-2012. All Rights Reserved.