Package eltos.simpledialogfragment.form
Klasse DateTime
java.lang.Object
eltos.simpledialogfragment.form.FormElement<DateTime,eltos.simpledialogfragment.form.DateTimeViewHolder>
eltos.simpledialogfragment.form.DateTime
- Alle implementierten Schnittstellen:
android.os.Parcelable
public class DateTime
extends FormElement<DateTime,eltos.simpledialogfragment.form.DateTimeViewHolder>
A color element to be used with
SimpleFormDialog
One can pick a date, time or both here
This will add a long to resource bundle containing the timestamp.
Created by eltos on 13.02.19
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen android.os.Parcelable
android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final android.os.Parcelable.Creator
<DateTime> protected Long
protected Integer
protected Long
protected Long
protected Integer
protected DateTime.Type
Von Klasse geerbte Felder eltos.simpledialogfragment.form.FormElement
NO_ID, required, resultKey
Von Schnittstelle geerbte Felder android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungeltos.simpledialogfragment.form.DateTimeViewHolder
Return your custom implementation ofFormElementViewHolder
herestatic DateTime
Factory method for a date field.Sets the initial date and timestatic DateTime
Factory method for a datetime field.int
Sets the last date selectableSets the first date selectablestatic DateTime
Factory method for a date/time/datetime field.time
(int hour, int minute) Sets the initial timestatic DateTime
Factory method for a time field.type
(DateTime.Type type) Sets this fields typevoid
writeToParcel
(android.os.Parcel dest, int flags)
-
Felddetails
-
type
-
min
-
max
-
date
-
hour
-
minute
-
CREATOR
-
-
Konstruktordetails
-
DateTime
protected DateTime(android.os.Parcel in)
-
-
Methodendetails
-
picker
Factory method for a date/time/datetime field.- Parameter:
key
- the key that can be used to receive the final state from the bundle inSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
- Gibt zurück:
- this instance
-
date
Factory method for a date field.- Parameter:
key
- the key that can be used to receive the final state from the bundle inSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
- Gibt zurück:
- this instance
-
time
Factory method for a time field.- Parameter:
key
- the key that can be used to receive the final state from the bundle inSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
- Gibt zurück:
- this instance
-
datetime
Factory method for a datetime field.- Parameter:
key
- the key that can be used to receive the final state from the bundle inSimpleDialog.OnDialogResultListener.onResult(java.lang.String, int, android.os.Bundle)
- Gibt zurück:
- this instance
-
type
Sets this fields type- Parameter:
type
- type of field:DateTime.Type.DATE
,DateTime.Type.TIME
orDateTime.Type.DATETIME
- Gibt zurück:
- this instance
-
min
Sets the first date selectable- Parameter:
date
- minimal date- Gibt zurück:
- this instance
-
max
Sets the last date selectable- Parameter:
date
- maximal date- Gibt zurück:
- this instance
-
date
Sets the initial date and time- Parameter:
date
- initial date- Gibt zurück:
- this instance
-
time
Sets the initial time- Parameter:
hour
- initial hourminute
- initial minute- Gibt zurück:
- this instance
-
buildViewHolder
public eltos.simpledialogfragment.form.DateTimeViewHolder buildViewHolder()Beschreibung aus Klasse kopiert:FormElement
Return your custom implementation ofFormElementViewHolder
here- Angegeben von:
buildViewHolder
in KlasseFormElement<DateTime,
eltos.simpledialogfragment.form.DateTimeViewHolder> - Gibt zurück:
- The view holder that can represent this form element
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Angegeben von:
writeToParcel
in Schnittstelleandroid.os.Parcelable
- Setzt außer Kraft:
writeToParcel
in KlasseFormElement<DateTime,
eltos.simpledialogfragment.form.DateTimeViewHolder>
-
describeContents
public int describeContents()- Angegeben von:
describeContents
in Schnittstelleandroid.os.Parcelable
- Setzt außer Kraft:
describeContents
in KlasseFormElement<DateTime,
eltos.simpledialogfragment.form.DateTimeViewHolder>
-