Example usage for javafx.beans.property SimpleStringProperty SimpleStringProperty

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

Introduction

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

Prototype

public SimpleStringProperty() 

Source Link

Document

The constructor of StringProperty

Usage

From source file:com.github.douglasjunior.simpleCSVEditor.FXMLController.java

private void adjustColumns(List<SimpleStringProperty> columns) {
    int dif = numbeColumns - columns.size();
    for (int i = 0; i < dif; i++) {
        columns.add(new SimpleStringProperty());
    }/*  w  w w .jav  a 2 s .c  o m*/
}

From source file:de.ks.idnadrev.information.chart.ChartDataEditor.java

public void setData(ChartData data) {
    int row = 0;/*  w ww . j a v a2s  .  co m*/
    for (String category : data.getCategories()) {
        if (rows.size() < row + 1) {
            rows.add(new ChartRow());
        }
        rows.get(row).setCategory(category);
        row++;
    }
    int column = 0;
    for (ChartData.DataSeries dataSeries : data.getSeries()) {
        if (columnHeaders.size() < column + 1) {
            columnHeaders.add(new SimpleStringProperty());
        }
        columnHeaders.get(column).set(dataSeries.getTitle());

        for (int valueIndex = 0; valueIndex < dataSeries.getValues().size(); valueIndex++) {
            Double value = dataSeries.getValues().get(valueIndex);
            rows.get(valueIndex).setValue(column, value);
        }
        column++;
    }
    xaxisTitle.setText(data.getXAxisTitle());
}

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://from   ww w  .ja  v  a 2s.  c o m
    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<>();
    }
}