Klasse SimpleDateDialog

java.lang.Object
androidx.fragment.app.Fragment
androidx.fragment.app.DialogFragment
Alle implementierten Schnittstellen:
android.content.ComponentCallbacks, android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnDismissListener, android.view.View.OnCreateContextMenuListener, android.widget.DatePicker.OnDateChangedListener, androidx.activity.result.ActivityResultCaller, androidx.lifecycle.HasDefaultViewModelProviderFactory, androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModelStoreOwner, androidx.savedstate.SavedStateRegistryOwner

public class SimpleDateDialog extends CustomViewDialog<SimpleDateDialog> implements android.widget.DatePicker.OnDateChangedListener
A date-picker dialog

Created by eltos on 02.02.2017.

  • Felddetails

  • Konstruktordetails

    • SimpleDateDialog

      public SimpleDateDialog()
  • Methodendetails

    • build

      public static SimpleDateDialog build()
    • date

      public SimpleDateDialog date(Date date)
      Specify the initially set date
      Parameter:
      date - initial date
      Gibt zurück:
      this instance
    • date

      public SimpleDateDialog date(long millis)
      Specify the initially set date as milliseconds
      Parameter:
      millis - milliseconds since Jan. 1, 1970, midnight GMT.
      Gibt zurück:
      this instance
    • minDate

      public SimpleDateDialog minDate(Date date)
      Sets the first date selectable
      Parameter:
      date - minimal date
      Gibt zurück:
      this instance
    • minDate

      public SimpleDateDialog minDate(long millis)
      Sets the first date selectable as milliseconds
      Parameter:
      millis - milliseconds since Jan. 1, 1970, midnight GMT.
      Gibt zurück:
      this instance
    • maxDate

      public SimpleDateDialog maxDate(Date date)
      Sets the last date selectable
      Parameter:
      date - maximal date
      Gibt zurück:
      this instance
    • maxDate

      public SimpleDateDialog maxDate(long millis)
      Sets the last date selectable as milliseconds
      Parameter:
      millis - milliseconds since Jan. 1, 1970, midnight GMT.
      Gibt zurück:
      this instance
    • firstDayOfWeek

      public SimpleDateDialog firstDayOfWeek(int day)
      Set the first day of the week to display
      Parameter:
      day - one of Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY
      Gibt zurück:
      this instance
    • onCreateContentView

      protected android.view.View onCreateContentView(android.os.Bundle savedInstanceState)
      Beschreibung aus Klasse kopiert: CustomViewDialog
      Inflate your custom view here.
      Angegeben von:
      onCreateContentView in Klasse CustomViewDialog<SimpleDateDialog>
      Parameter:
      savedInstanceState - The last saved instance state of the Fragment, or null if this fragment is created for the first time.
      Gibt zurück:
      Return a new View to be displayed by the Fragment.
    • onDateChanged

      public void onDateChanged(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth)
      Angegeben von:
      onDateChanged in Schnittstelle android.widget.DatePicker.OnDateChangedListener
    • onSaveInstanceState

      public void onSaveInstanceState(android.os.Bundle outState)
      Setzt außer Kraft:
      onSaveInstanceState in Klasse androidx.fragment.app.DialogFragment
    • onResult

      protected android.os.Bundle onResult(int which)
      Beschreibung aus Klasse kopiert: CustomViewDialog
      Overwrite this method to provide additional results from your custom view to be passed to the SimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
      Setzt außer Kraft:
      onResult in Klasse CustomViewDialog<SimpleDateDialog>
      Parameter:
      which - see SimpleDialog.OnDialogResultListener
      Gibt zurück:
      the bundle to merge with the results or null