java.lang.Object
   ↳ android.app.Dialog
     ↳ com.htc.widget.HtcAlertDialog
       ↳ com.htc.widget.HtcDatePickerDialog

Class Overview

A simple dialog containing an HtcDatePicker.

Summary

Nested Classes
interface HtcDatePickerDialog.OnDateSetListener The callback used to indicate the user is done filling in the date. 
[Expand]
Inherited Constants
From interface android.content.DialogInterface
[Expand]
Inherited Fields
From class com.htc.widget.HtcAlertDialog
From class android.app.Dialog
Public Constructors
HtcDatePickerDialog(Context context, HtcDatePickerDialog.OnDateSetListener callBack, int yearStart, int yearEnd, int year, int monthOfYear, String dateOrder)
HtcDatePickerDialog(Context context, HtcDatePickerDialog.OnDateSetListener callBack, int yearStart, int yearEnd, int year, int monthOfYear, int dayOfMonth, boolean repeatEnable)
HtcDatePickerDialog(Context context, HtcDatePickerDialog.OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth)
HtcDatePickerDialog(Context context, int theme, HtcDatePickerDialog.OnDateSetListener callBack, int yearStart, int yearEnd, int year, int monthOfYear, int dayOfMonth, boolean repeatEnable)
HtcDatePickerDialog(Context context, int theme, HtcDatePickerDialog.OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth)
Public Methods
void onClick(DialogInterface dialog, int which)
void onDataSet(HtcNumberPicker target, int data)
Callback to provide CenterView Id when scroll state turn to idle
void onDateChanged(HtcDatePicker view, int year, int month, int day)
void onRestoreInstanceState(Bundle savedInstanceState)
Bundle onSaveInstanceState()
void setTitle(CharSequence title)
void updateDate(int year, int monthOfYear, int dayOfMonth)
[Expand]
Inherited Methods
From class com.htc.widget.HtcAlertDialog
From class android.app.Dialog
From class java.lang.Object
From interface android.content.DialogInterface
From interface android.content.DialogInterface.OnClickListener
From interface android.view.KeyEvent.Callback
From interface android.view.PenManager.PenCallback
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface com.htc.widget.HtcDatePicker.OnDateChangedListener
From interface com.htc.widget.HtcNumberPicker.OnScrollIdleStateListener

Public Constructors

public HtcDatePickerDialog (Context context, HtcDatePickerDialog.OnDateSetListener callBack, int yearStart, int yearEnd, int year, int monthOfYear, String dateOrder)

Since: API Level 2.0

Parameters
context The context the dialog is to run in.
callBack How the parent is notified that the date is set.
yearStart The start year of the dialog.
yearEnd The End year of the dialog.
year The initial year of the dialog.
monthOfYear The initial month of the dialog.
dateOrder The date order of the dialog.

public HtcDatePickerDialog (Context context, HtcDatePickerDialog.OnDateSetListener callBack, int yearStart, int yearEnd, int year, int monthOfYear, int dayOfMonth, boolean repeatEnable)

Since: API Level 2.0

Parameters
context The context the dialog is to run in.
callBack How the parent is notified that the date is set.
yearStart The start year of the dialog.
yearEnd The End year of the dialog.
year The initial year of the dialog.
monthOfYear The initial month of the dialog.
dayOfMonth The initial day of the dialog.
repeatEnable Whether it is in repeat-able mode or not.

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

Since: API Level 2.0

Parameters
context The context the dialog is to run in.
callBack How the parent is notified that the date is set.
year The initial year of the dialog.
monthOfYear The initial month of the dialog.
dayOfMonth The initial day of the dialog.

public HtcDatePickerDialog (Context context, int theme, HtcDatePickerDialog.OnDateSetListener callBack, int yearStart, int yearEnd, int year, int monthOfYear, int dayOfMonth, boolean repeatEnable)

Since: API Level 2.0

Parameters
context The context the dialog is to run in.
theme The theme to apply to this dialog
callBack How the parent is notified that the date is set.
yearStart The start year of the dialog.
yearEnd The End year of the dialog.
year The initial year of the dialog.
monthOfYear The initial month of the dialog.
dayOfMonth The initial day of the dialog.
repeatEnable Whether it is in repeat-able mode or not.

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

Since: API Level 2.0

Parameters
context The context the dialog is to run in.
theme The theme to apply to this dialog
callBack How the parent is notified that the date is set.
year The initial year of the dialog.
monthOfYear The initial month of the dialog.
dayOfMonth The initial day of the dialog.

Public Methods

public void onClick (DialogInterface dialog, int which)

Since: API Level 2.0

public void onDataSet (HtcNumberPicker target, int data)

Since: API Level 2.0

Callback to provide CenterView Id when scroll state turn to idle

Parameters
target Target NumberTableView
data Relative centerView data

public void onDateChanged (HtcDatePicker view, int year, int month, int day)

Since: API Level 2.0

public void onRestoreInstanceState (Bundle savedInstanceState)

Since: API Level

public Bundle onSaveInstanceState ()

Since: API Level

public void setTitle (CharSequence title)

Since: API Level

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

Since: API Level 2.0