Search in sources :

Example 1 with TableInformationUserMetadataVO

use of com.kyj.fx.voeditor.visual.component.sql.table.TableInformationUserMetadataVO 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)

Aggregations

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