PickerButton

abstract class PickerButton<Type>

A Button to control a DatePickerDialog

Author

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

Since

1.0

Inheritors

Constructors

Link copied to clipboard
protected constructor(context: Context)
Simple constructor to use when creating a view from code.
protected constructor(context: Context, attrs: AttributeSet)
Constructor that is called when inflating a view from XML.
protected 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
protected open var promptText: CharSequence
optional prompt text
Link copied to clipboard
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
private open fun init(attrs: AttributeSet)
init values from xml date
Link copied to clipboard
private open fun isShowingDialog(): Boolean
is the picker dialog currently on display
Link copied to clipboard
open fun onClick(view: View)
handles the click event.
Link copied to clipboard
open fun setPromptText(hintText: CharSequence)
set the optional prompt title
Link copied to clipboard
open fun setValue(value: Type)
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.