class EntryModel : ItemViewModel() { val title = bind { SimpleStringProperty(item?.title ?: "") } val username = bind { SimpleStringProperty(item?.username ?: "") } val url = bind { SimpleStringProperty(item?.url ?: "") } val password = bind { SimpleStringProperty(item?.password ?: "") } val notes = bind { SimpleStringProperty(item?.notes ?: "") } val Kproperties = bind { SimpleObjectProperty>(item?.properties ?: emptyList()) } val history = bind { SimpleObjectProperty(item?.history ?: History()) } val dateCreated = bind { SimpleObjectProperty(item?.times?.creationTime?.toLocalDateTime() ?: LocalDateTime.now()) } val dateModified = bind { SimpleObjectProperty(item?.times?.lastModificationTime?.toLocalDateTime() ?: LocalDateTime.now()) } val dateAccessed = bind { SimpleObjectProperty(item?.times?.lastAccessTime?.toLocalDateTime() ?: LocalDateTime.now()) } }