android.app
Class TimePickerDialog

java.lang.Object
  extended by android.app.Dialog
      extended by android.app.AlertDialog
          extended by android.app.TimePickerDialog
All Implemented Interfaces:
DialogInterface, DialogInterface.OnClickListener, KeyEvent.Callback, View.OnCreateContextMenuListener, Window.Callback, TimePicker.OnTimeChangedListener

public class TimePickerDialog
extends AlertDialog
implements DialogInterface.OnClickListener, TimePicker.OnTimeChangedListener


Nested Class Summary
static interface TimePickerDialog.OnTimeSetListener
           
 
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
TimePickerDialog(Context context, int theme, TimePickerDialog.OnTimeSetListener callBack, int hourOfDay, int minute, boolean is24HourView)
           
TimePickerDialog(Context context, TimePickerDialog.OnTimeSetListener callBack, int hourOfDay, int minute, boolean is24HourView)
           
 
Method Summary
 void onClick(DialogInterface dialog, int which)
           
 void onRestoreInstanceState(Bundle savedInstanceState)
           
 Bundle onSaveInstanceState()
           
 void onTimeChanged(TimePicker view, int hourOfDay, int minute)
           
 void updateTime(int hourOfDay, int minutOfHour)
           
 
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

TimePickerDialog

public TimePickerDialog(Context context,
                        TimePickerDialog.OnTimeSetListener callBack,
                        int hourOfDay,
                        int minute,
                        boolean is24HourView)

TimePickerDialog

public TimePickerDialog(Context context,
                        int theme,
                        TimePickerDialog.OnTimeSetListener callBack,
                        int hourOfDay,
                        int minute,
                        boolean is24HourView)
Method Detail

onClick

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

updateTime

public void updateTime(int hourOfDay,
                       int minutOfHour)

onTimeChanged

public void onTimeChanged(TimePicker view,
                          int hourOfDay,
                          int minute)
Specified by:
onTimeChanged in interface TimePicker.OnTimeChangedListener

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.