JDateTimeField

class JDateTimeField(val default: LocalDateTime = LocalDateTime.now()) : JFormattedTextField(source)

A JFormattedTextField for LocalDateTimes, supporting virtually any date-time format as its input.

Parameters

default

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

Constructors

Link copied to clipboard
constructor(default: LocalDateTime = LocalDateTime.now())

Types

Link copied to clipboard
object Companion

Holds constants.

Link copied to clipboard
class DateTimeFormatter : JFormattedTextField.AbstractFormatter

Formats a string to a LocalDateTime and vice versa.

Properties

Link copied to clipboard
private val default: LocalDateTime
Link copied to clipboard
var longValue: Long

The current value represented as a Long of the millisecond epoch.

Functions

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

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

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

Sets the LocalDateTime that is contained in this field.