NumberPickerButton

A Button to control a NumberPickerDialog

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
Link copied to clipboard
private open var maxValue: Int
minimum number to choose.
Link copied to clipboard
private open var minValue: Int
maximum number to choose.
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 clone(): Any
Link copied to clipboard
protected open fun dismissDialog()
close the picker dialog
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun getValue(): Type
the date to be shown and edited.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
private open fun init(attrs: AttributeSet)
init values from xml date
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
open fun onClick(view: View)
handles the click event.
Link copied to clipboard
open fun onValueChange(view: View, oldValue: Int, newValue: Int)
value 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 setMaxValue(maxValue: Int)
Link copied to clipboard
open fun setMinValue(minValue: Int)
Link copied to clipboard
open fun setPromptText(hintText: CharSequence)
set the optional prompt title
Link copied to clipboard
open fun setValue(value: Integer)
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.
Link copied to clipboard
fun wait()