JDateTimeField

class JDateTimeField(val default: Timestamp = Timestamp("1970")) : JFormattedTextField(source)

A JFormattedTextField for Timestamps.

See Timestamp for how inputs are parsed and interpreted. Invalid inputs are never rejected. The DateTimeFormatter is used only to coerce inputs into Timestamp objects, in doing so normalizing the notation.

Parameters

default

the default Timestamp that is returned in case no value has ever been set

Constructors

Link copied to clipboard
constructor(default: Timestamp = Timestamp("1970"))

Types

Link copied to clipboard
class DateTimeFormatter : JFormattedTextField.AbstractFormatter

Coerces inputs into Timestamp objects.

Properties

Link copied to clipboard
private val default: Timestamp

Functions

Link copied to clipboard
open override fun getValue(): Timestamp

Returns the Timestamp contained in this field, or default otherwise.

Link copied to clipboard
open override fun setValue(value: Any)

Sets the Timestamp that is contained in this field.