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));
}
}
Aggregations