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