本文整理了Java中javafx.scene.layout.BorderPane.setMargin()
方法的一些代码示例,展示了BorderPane.setMargin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BorderPane.setMargin()
方法的具体详情如下:
包路径:javafx.scene.layout.BorderPane
类名称:BorderPane
方法名:setMargin
暂无
代码示例来源:origin: org.copper-engine/copper-monitoring-client
public static Node createProgressIndicator() {
ProgressIndicator indicator = new ProgressIndicator();
indicator.setMaxHeight(350);
indicator.setMaxWidth(350);
BorderPane borderPane = new BorderPane();
BorderPane.setMargin(indicator, new Insets(5));
borderPane.setCenter(indicator);
borderPane.setStyle("-fx-background-color: rgba(230,230,230,0.7);");
return borderPane;
}
代码示例来源:origin: com.aquafx-project/aquafx
ImageView iv = new ImageView(image);
BorderPane.setMargin(iv, new Insets(18, 0, 0, 18));
borderPane.setLeft(iv);
代码示例来源:origin: org.copper-engine/copper-monitoring-client
@Override
public Node createContent() {
BorderPane pane = new BorderPane();
workflowView.setPrefWidth(600);
pane.setCenter(workflowView);
Button refreshButton = new Button("Refresh");
BorderPane.setMargin(refreshButton, new Insets(5));
pane.setBottom(refreshButton);
controller.refresh(copperDataProvider.getWorkflowClassesList(filterController.getFilter().selectedEngine.get().getId()));
controller.selectedItem.addListener(new ChangeListener<WorkflowVersion>() {
@Override
public void changed(ObservableValue<? extends WorkflowVersion> observable, WorkflowVersion oldValue, WorkflowVersion newValue) {
if (newValue != null) {
filterController.setFilter(newValue);
filterController.startValueSetAnimation();
}
}
});
refreshButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent actionEvent) {
controller.refresh(copperDataProvider.getWorkflowClassesList(filterController.getFilter().selectedEngine.get().getId()));
}
});
return pane;
}
代码示例来源:origin: io.github.factoryfx/javafxDataEditing
@Override
public Node createValueVisualisation() {
HTMLEditor htmlEditor = new HTMLEditor();
htmlEditor.disableProperty().bind(readOnly);
changeListener = (observable, oldValue, newValue) -> htmlEditor.setHtmlText(newValue);
observableAttributeValue.addListener(new WeakChangeListener<>(changeListener));
BorderPane borderPane = new BorderPane();
borderPane.setCenter(htmlEditor);
Button save = new Button("save");//strangely workaround HTMLEditor have no bind or change events
save.setOnAction(event -> observableAttributeValue.set(htmlEditor.getHtmlText()));
htmlEditor.setHtmlText(observableAttributeValue.get());
BorderPane.setMargin(save,new Insets(3,0,3,0));
borderPane.setTop(save);
return borderPane;
}
代码示例来源:origin: org.copper-engine/copper-monitoring-client
BorderPane.setMargin(pane, new Insets(3));
pane.setSpacing(3);
pane.setAlignment(Pos.CENTER_LEFT);
代码示例来源:origin: org.copper-engine/copper-monitoring-client
BorderPane.setMargin(createTableControls, new Insets(3));
borderPane.setBottom(createTableControls);
内容来源于网络,如有侵权,请联系作者删除!