Search in sources :

Example 81 with BorderPane

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();
}
Also used : BorderPane(javafx.scene.layout.BorderPane) PMDCheckComposite(com.kyj.fx.voeditor.visual.component.pmd.PMDCheckComposite) Scene(javafx.scene.Scene) File(java.io.File)

Example 82 with BorderPane

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));
    }
}
Also used : JavaSVNManager(com.kyj.scm.manager.svn.java.JavaSVNManager) BorderPane(javafx.scene.layout.BorderPane) Stage(javafx.stage.Stage) Properties(java.util.Properties) Scene(javafx.scene.Scene) FXMLLoader(javafx.fxml.FXMLLoader) SVNException(org.tmatesoft.svn.core.SVNException) IOException(java.io.IOException)

Example 83 with BorderPane

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));
    }
}
Also used : JavaSVNManager(com.kyj.scm.manager.svn.java.JavaSVNManager) BorderPane(javafx.scene.layout.BorderPane) Stage(javafx.stage.Stage) IOException(java.io.IOException) Scene(javafx.scene.Scene) Properties(java.util.Properties) FXMLLoader(javafx.fxml.FXMLLoader)

Example 84 with BorderPane

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);
}
Also used : BorderPane(javafx.scene.layout.BorderPane) SVNLogEntry(org.tmatesoft.svn.core.SVNLogEntry) Label(javafx.scene.control.Label)

Example 85 with 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();
}
Also used : BorderPane(javafx.scene.layout.BorderPane) SqlTab(com.kyj.fx.voeditor.visual.component.sql.tab.SqlTab) Tab(javafx.scene.control.Tab) Map(java.util.Map) HashMap(java.util.HashMap) TableView(javafx.scene.control.TableView)

Aggregations

BorderPane (javafx.scene.layout.BorderPane)95 Scene (javafx.scene.Scene)58 Button (javafx.scene.control.Button)19 Label (javafx.scene.control.Label)17 FXMLLoader (javafx.fxml.FXMLLoader)14 Stage (javafx.stage.Stage)14 StackPane (javafx.scene.layout.StackPane)12 IOException (java.io.IOException)11 Parameter (aima.gui.fx.framework.Parameter)10 SimulationPaneBuilder (aima.gui.fx.framework.SimulationPaneBuilder)10 File (java.io.File)10 HBox (javafx.scene.layout.HBox)9 HashMap (java.util.HashMap)8 Insets (javafx.geometry.Insets)8 TextField (javafx.scene.control.TextField)8 Map (java.util.Map)6 MenuItem (javafx.scene.control.MenuItem)6 TableColumn (javafx.scene.control.TableColumn)6 TableView (javafx.scene.control.TableView)6 List (java.util.List)5