tornadofx.control.Form Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tornadofx-controls Show documentation
Show all versions of tornadofx-controls Show documentation
CSS Stylable Controls for JavaFX
The newest version!
package tornadofx.control;
import javafx.geometry.Orientation;
import javafx.scene.layout.VBox;
import java.util.stream.Stream;
public class Form extends VBox {
public Form() {
getStyleClass().add("form");
}
public double getLabelContainerWidth(Double height) {
return getFieldsets().flatMap(fs->fs.getFields().stream())
.map(Field::getLabelContainer)
.mapToDouble(f -> f.prefWidth(-height))
.max()
.orElse(0);
}
public Stream
© 2015 - 2025 Weber Informatics LLC | Privacy Policy