List of usage examples for javafx.scene.control ButtonBar getButtons
public final ObservableList<Node> getButtons()
From source file:io.github.moosbusch.permagon.configuration.builder.spi.AbstractPermagonBuilder.java
protected void buildButtonBar(ButtonBar buttonBar) { if (containsKey(NODE_BUTTONS_PROPERTY)) { Object obj = Objects.requireNonNull(get(NODE_BUTTONS_PROPERTY)); if (obj instanceof ObservableMap) { ObservableMap propertiesMap = (ObservableMap) obj; propertiesMap.values().stream().filter((propertyValue) -> (propertyValue instanceof ObservableList)) .forEach((propertyValue) -> { buttonBar.getButtons().addAll((ObservableList) propertyValue); });/*from w w w .j a v a2 s.c o m*/ } } }