Search in sources :

Example 1 with ReadOnlyBooleanWrapper

use of javafx.beans.property.ReadOnlyBooleanWrapper in project loinc2hpo by monarch-initiative.

the class CurrentAnnotationController method initTableStructure.

private void initTableStructure() {
    codeInternalTableview.setSortable(true);
    codeInternalTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getCode().getCode()));
    hpoInternalTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getHpoTermId4LoincTest().getHpoTerm().getName()));
    inversedInternalTableview.setCellValueFactory(cdf -> new ReadOnlyBooleanWrapper(cdf.getValue().getHpoTermId4LoincTest().isNegated()));
    internalTableview.setItems(internalCodeAnnotations);
    systemExternalTableview.setSortable(true);
    systemExternalTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getCode().getSystem()));
    codeExternalTableview.setSortable(true);
    codeExternalTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getCode().getCode()));
    hpoExternalTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getHpoTermId4LoincTest().getHpoTerm().getName()));
    inversedExternalTableview.setCellValueFactory(cdf -> new ReadOnlyBooleanWrapper(cdf.getValue().getHpoTermId4LoincTest().isNegated()));
    externalTableview.setItems(externalCodeAnnotations);
    systemInterpretTableview.setSortable(true);
    systemInterpretTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getCode().getSystem()));
    codeInterpretTableview.setSortable(true);
    codeInterpretTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getCode().getCode()));
    hpoInterpretTableview.setCellValueFactory(cdf -> new ReadOnlyStringWrapper(cdf.getValue().getHpoTermId4LoincTest().getHpoTerm().getName()));
    inversedInterpretTableview.setCellValueFactory(cdf -> new ReadOnlyBooleanWrapper(cdf.getValue().getHpoTermId4LoincTest().isNegated()));
    interpretationTableview.setItems(interpretationCodeAnnotations);
}
Also used : ReadOnlyStringWrapper(javafx.beans.property.ReadOnlyStringWrapper) ReadOnlyBooleanWrapper(javafx.beans.property.ReadOnlyBooleanWrapper)

Example 2 with ReadOnlyBooleanWrapper

use of javafx.beans.property.ReadOnlyBooleanWrapper in project NMEAParser by tvesalainen.

the class FXPropertySetter method addExt.

protected void addExt(boolean out, String property, ObservableNumberValue onv) {
    valueMap.put(property, onv);
    disabledMap.put(property, new ReadOnlyBooleanWrapper(this, property, false));
    addProperty(false, out, property);
}
Also used : ReadOnlyBooleanWrapper(javafx.beans.property.ReadOnlyBooleanWrapper)

Aggregations

ReadOnlyBooleanWrapper (javafx.beans.property.ReadOnlyBooleanWrapper)2 ReadOnlyStringWrapper (javafx.beans.property.ReadOnlyStringWrapper)1