Example usage for javafx.beans.property SimpleBooleanProperty SimpleBooleanProperty

List of usage examples for javafx.beans.property SimpleBooleanProperty SimpleBooleanProperty

Introduction

In this page you can find the example usage for javafx.beans.property SimpleBooleanProperty SimpleBooleanProperty.

Prototype

public SimpleBooleanProperty(Object bean, String name) 

Source Link

Document

The constructor of BooleanProperty

Usage

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<>();
    }
}