List of usage examples for javafx.beans.property SimpleBooleanProperty SimpleBooleanProperty
public SimpleBooleanProperty(Object bean, String name)
From source file:cz.lbenda.dataman.db.RowDesc.java
@SuppressWarnings("unchecked") private <T> ObservableValue<T> createObjectProperty(@Nonnull ColumnDesc columnDesc) { switch (columnDesc.getDataType()) { case BOOLEAN: return (ObservableValue<T>) new SimpleBooleanProperty(null, null); case BYTE:/* w ww .j a v a2s .c om*/ case SHORT: case LONG: case INTEGER: case FLOAT: case DOUBLE: case DECIMAL: return new SimpleObjectProperty<>(); case DATE: return (ObservableValue<T>) new SimpleLocalDateProperty(); case TIMESTAMP: return (ObservableValue<T>) new SimpleLocalDateTimeProperty(); case TIME: return (ObservableValue<T>) new SimpleLocalTimeProperty(); case STRING: return (ObservableValue<T>) new SimpleStringProperty(); case BYTE_ARRAY: case CLOB: case BLOB: return (ObservableValue<T>) new SimpleObjectProperty<>(); default: return (ObservableValue<T>) new SimpleObjectProperty<>(); } }