All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.quellatalo.fx.explr.propdisplay.ValueDisplay Maven / Gradle / Ivy

There is a newer version: 1.1.0.0
Show newest version
package io.github.quellatalo.fx.explr.propdisplay;

import javafx.fxml.FXML;
import javafx.scene.control.Label;

public class ValueDisplay extends PropertyDisplay {
    @FXML
    private Label lblValue;

    public ValueDisplay() {
        lblValue = new Label();
        getChildren().add(lblValue);
    }

    @Override
    public void setValue(T value) {
        if (value != null)
            lblValue.setText(value.toString());
    }

    @Override
    public String getText() {
        return lblValue.getText();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy