io.github.quellatalo.fx.explr.propdisplay.ValueDisplay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of object-explorer Show documentation
Show all versions of object-explorer Show documentation
A javafx control for browsing object structure and data.
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