TimePickerButton

A Button to control a TimePickerDialog

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Since

1.0

Constructors

Link copied to clipboard
constructor(context: Context)
Simple constructor to use when creating a view from code.
constructor(context: Context, attrs: AttributeSet)
Constructor that is called when inflating a view from XML.
constructor(context: Context, attrs: AttributeSet, defStyle: Int)
Perform inflation from XML and apply a class-specific base style.

Properties

Link copied to clipboard
protected open var dialog: AlertDialog
dialog in which the date picker is shown
Link copied to clipboard
private val formater: DateFormat
Link copied to clipboard
protected open var promptText: CharSequence
optional prompt text
Link copied to clipboard
private val TAG: String
private val TAG: String
TAG as class name for logging
Link copied to clipboard
protected open var value: Type
the date to be shown and edited.
Link copied to clipboard
protected open var valueChanged: Boolean
true if the the value has been changed by the user since contruction or last call to setValue.

Functions

Link copied to clipboard
protected open fun dismissDialog()
close the picker dialog
Link copied to clipboard
open fun getValue(): Type
the date to be shown and edited.
Link copied to clipboard
open fun onClick(view: View)
handles the click event.
Link copied to clipboard
open fun onTimeSet(view: TimePicker, hour: Int, minute: Int)
time has been changes using the picker dialog
Link copied to clipboard
private open fun refreshDisplay()
update the text displayed on the button.
Link copied to clipboard
open fun setPromptText(hintText: CharSequence)
set the optional prompt title
Link copied to clipboard
open fun setValue(value: Calendar)
the date to be shown and edited.
Link copied to clipboard
protected open fun showDialog()
starts showing the picker dialog
Link copied to clipboard
open fun toString(): String
debug text
Link copied to clipboard
open fun valueChanged(): Boolean
true if the the value has been changed by the user since contruction or last call to setValue.