tornadofx.control.Form Maven / Gradle / Ivy
package tornadofx.control;
import javafx.scene.layout.VBox;
import java.util.stream.Stream;
public class Form extends VBox {
public Form() {
getStyleClass().add("form");
}
public double getLabelContainerWidth() {
return getFieldsets().flatMap(Fieldset::getFields)
.map(Field::getLabelContainer)
.mapToDouble(f -> f.prefWidth(-1))
.max()
.orElse(0);
}
public Stream