/** * Default Constructor */ public FullTableEditorPane() { getStyleClass().add("ep-full-table-editor-pane"); // header.getStyleClass().add("ep-full-table-editor-pane-header"); IconUtils.setFontIcon("fa-rotate-left:16", closeAction); closeAction.addEventFilter(ActionEvent.ACTION, this::popContent); closeAction.getStyleClass().add("button-transparent"); IconUtils.setFontIcon("fa-angle-double-down:22", minimizeAction); minimizeAction.addEventFilter(ActionEvent.ACTION, this::minimizePushedContent); minimizeAction.getStyleClass().add("button-transparent"); }
/** * Will replace the full table content in the layout manager with this content. The use can cancel * it and this pane will be hidden and replaced by the table. */ public void beginEdition(Node node) { getChildren().clear(); getChildren().addAll(node, minimizeAction); NodeHelper.setVgrow(node); // AnchorPane.setTopAnchor(closeAction, 5.0); // AnchorPane.setRightAnchor(closeAction, 30.0); AnchorPane.setTopAnchor(minimizeAction, 5.0); AnchorPane.setRightAnchor(minimizeAction, 30.0); AnchorPane.setTopAnchor(node, 0.0); AnchorPane.setBottomAnchor(node, 0.0); AnchorPane.setLeftAnchor(node, 0.0); AnchorPane.setRightAnchor(node, 0.0); }
public void endEdition() { getChildren().clear(); } }
public void endEdition() { if (Platform.isFxApplicationThread()) { editorPane.endEdition(); layoutManager.popContent(); } else { Platform.runLater(() -> { editorPane.endEdition(); layoutManager.popContent(); }); } }
@Override public void pushContent(StandardViewController c, Node node) { if (Platform.isFxApplicationThread()) { editorPane.beginEdition(node); layoutManager.pushContent(editorPane); } else { Platform.runLater(() -> { editorPane.beginEdition(node); layoutManager.pushContent(editorPane); }); } }
/** * Default Constructor */ public FullTableViewController() { editorPane = new FullTableEditorPane(); registerListener(CoreEvent.RefreshTableCurrentPageEvent); }