Search in sources :

Example 1 with TableInformationFrameView

use of com.kyj.fx.voeditor.visual.component.sql.table.TableInformationFrameView in project Gargoyle by callakrsos.

the class CommonsSqllPan method showProperties.

/*
	 * @inheritDoc
	 */
@Override
public void showProperties(Supplier<Connection> connectionSupplier, String databaseName, String tableName) {
    try {
        // 팝업씬 생성.
        TableInformationFrameView tableInformationFrameView = new TableInformationFrameView(connectionSupplier, () -> {
            TableInformationUserMetadataVO meta = new TableInformationUserMetadataVO();
            meta.setDatabaseName(databaseName);
            meta.setTableName(tableName);
            return meta;
        });
        final Stage dialog = new Stage();
        dialog.setTitle(POPUP_TITLE_DATABASE_INFOMATION.concat("(" + tableName + ")"));
        // dialog.initModality(Modality.NONE);
        dialog.setAlwaysOnTop(false);
        dialog.centerOnScreen();
        dialog.setMaxWidth(tableInformationFrameView.getPrefWidth());
        dialog.setMaxHeight(tableInformationFrameView.getPrefHeight());
        dialog.initOwner(this.getScene().getWindow());
        Scene dialogScene = new Scene(tableInformationFrameView);
        dialog.setScene(dialogScene);
        dialog.show();
    } catch (IOException e) {
        LOGGER.error(ValueUtil.toString(e));
    }
}
Also used : TableInformationUserMetadataVO(com.kyj.fx.voeditor.visual.component.sql.table.TableInformationUserMetadataVO) TableInformationFrameView(com.kyj.fx.voeditor.visual.component.sql.table.TableInformationFrameView) Stage(javafx.stage.Stage) IOException(java.io.IOException) Scene(javafx.scene.Scene)

Example 2 with TableInformationFrameView

use of com.kyj.fx.voeditor.visual.component.sql.table.TableInformationFrameView in project Gargoyle by callakrsos.

the class TableInformationExam method start.

@Override
public void start(Stage primaryStage) throws Exception {
    // 테스트하고자하는 뷰를 정의한다.
    TableInformationFrameView view = new TableInformationFrameView(suppler, metadata);
    Scene scene = new Scene(view);
    primaryStage.setScene(scene);
    primaryStage.show();
    System.out.println(FxClipboardUtil.pastImage());
}
Also used : TableInformationFrameView(com.kyj.fx.voeditor.visual.component.sql.table.TableInformationFrameView) Scene(javafx.scene.Scene)

Aggregations

TableInformationFrameView (com.kyj.fx.voeditor.visual.component.sql.table.TableInformationFrameView)2 Scene (javafx.scene.Scene)2 TableInformationUserMetadataVO (com.kyj.fx.voeditor.visual.component.sql.table.TableInformationUserMetadataVO)1 IOException (java.io.IOException)1 Stage (javafx.stage.Stage)1