use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class PMDCheckExam method start.
/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
// SwingNode swingContainerSplitPane = new SwingNode();
// SwingNode swingMenuBar = new SwingNode();
File file = new File("./src/main/java/com/kyj/fx/voeditor/visual/util/ValueUtil.java");
BorderPane root = new PMDCheckComposite(file);
// root.setBottom(new Label("javafx"));
// createSwingContent(swingContainerSplitPane, );
// createSwingContent(swingMenuBar, designerFx.getJMenuBar());
Scene value = new Scene(root, 1200, 800);
primaryStage.setScene(value);
primaryStage.show();
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class SVNTreeView method menuPropertiesOnAction.
/**
* @작성자 : KYJ
* @작성일 : 2016. 8. 8.
* @param e
* @throws IOException
*/
public void menuPropertiesOnAction(ActionEvent e) {
TreeItem<SVNItem> selectedItem = getSelectionModel().getSelectedItem();
try {
if (selectedItem != null) {
SVNItem value = selectedItem.getValue();
Properties properties = value.getManager().getProperties();
FXMLLoader fxmlLoader = new FXMLLoader(SVNTreeView.class.getResource("AddNewSVNRepositoryView.fxml"));
BorderPane n = fxmlLoader.load();
Stage window = (Stage) getParent().getScene().getWindow();
Stage parent = (Stage) com.kyj.fx.voeditor.visual.util.ValueUtil.decode(window, window, SharedMemory.getPrimaryStage());
Stage stage = new Stage();
AddNewSVNRepositoryController controller = fxmlLoader.getController();
controller.setStage(stage);
controller.setProperties(properties);
stage.setScene(new Scene(n));
stage.setResizable(false);
stage.initOwner(parent);
stage.setTitle("Modify Location.");
stage.centerOnScreen();
stage.showAndWait();
Properties result = controller.getResult();
if (result != null) {
SVNItem newSVNItem = new SVNRepository(new JavaSVNManager(result));
TreeItem<SVNItem> createNode = scmTreeMaker.createNode(newSVNItem, null);
getRoot().getChildren().remove(selectedItem);
getRoot().getChildren().add(createNode);
}
}
} catch (Exception ex) {
LOGGER.error(ValueUtil.toString(ex));
}
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class SVNTreeView method menuAddNewLocationOnAction.
/**
* 새로운 레포지토리를 추가한다.
*
* @작성자 : KYJ
* @작성일 : 2016. 4. 3.
* @param e
*/
public void menuAddNewLocationOnAction(ActionEvent e) {
try {
FXMLLoader fxmlLoader = new FXMLLoader(SVNTreeView.class.getResource("AddNewSVNRepositoryView.fxml"));
BorderPane n = fxmlLoader.load();
Stage window = (Stage) getParent().getScene().getWindow();
Stage parent = (Stage) com.kyj.fx.voeditor.visual.util.ValueUtil.decode(window, window, SharedMemory.getPrimaryStage());
Stage stage = new Stage();
AddNewSVNRepositoryController controller = fxmlLoader.getController();
controller.setStage(stage);
stage.setScene(new Scene(n));
stage.setResizable(false);
stage.initOwner(parent);
stage.setTitle("Add New Location.");
stage.centerOnScreen();
stage.showAndWait();
Properties result = controller.getResult();
if (result != null) {
SVNItem newSVNItem = new SVNRepository(new JavaSVNManager(result));
TreeItem<SVNItem> createNode = scmTreeMaker.createNode(newSVNItem, null);
getRoot().getChildren().add(createNode);
}
} catch (IOException e1) {
LOGGER.error(ValueUtil.toString(e1));
}
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class ScmCommitComposite method createPopOver.
/**
* @작성자 : KYJ
* @작성일 : 2016. 7. 19.
* @param n
*/
private void createPopOver(Data<String, Long> data) {
String xValue = data.getXValue();
// Date parse = FxSVNHistoryDataSupplier.YYYYMMDD_EEE_PATTERN.parse(xValue);
//supplier.list(parse);
Collection<SVNLogEntry> list = supplier.getAllLogs();
// Stream<GargoyleSVNLogEntryPath> createStream = supplier.createStream(list);
ObservableList<SVNLogEntry> collect = list.stream().filter(v -> {
return xValue.equals(FxSVNHistoryDataSupplier.YYYYMMDD_EEE_PATTERN.format(v.getDate()));
}).distinct().collect(FxCollectors.toObservableList());
ListView<SVNLogEntry> createHistoryListView = supplier.createEntryListView(collect);
BorderPane borderPane = new BorderPane(createHistoryListView);
borderPane.setTop(new Label(xValue));
borderPane.setBottom(new Label(String.valueOf(collect.size())));
FxUtil.showPopOver(data.getNode(), borderPane);
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class SqlMultiplePane method newTabAction.
/********************************
* 작성일 : 2016. 4. 20. 작성자 : KYJ
*
* 새로운 탭을 만들고 그 안에 consumer라는 행위 처리를 한다.
*
* @param consumer
********************************/
@SuppressWarnings("unchecked")
private void newTabAction(Consumer<TableView<Map<String, Object>>> consumer) {
Tab newTab = addNewTabResult();
BorderPane borderPane = (BorderPane) newTab.getContent();
TableView<Map<String, Object>> content = (TableView<Map<String, Object>>) borderPane.getCenter();
NullExpresion.ifNotNullDo(content, consumer);
resultTabPane.getTabs().add(newTab);
resultTabPane.getSelectionModel().selectLast();
}
Aggregations