use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class FxControlsTreeViewExam method getTestNod.
Node getTestNod() {
/* [시작] 분석하고자하는 UI구조 */
BorderPane borderPane = new BorderPane();
ScrollPane scrollPane2 = new ScrollPane();
scrollPane2.setContent(new TextArea());
borderPane.setTop(new HBox(new Button(), new Button(), new HTMLEditor()));
borderPane.setCenter(new BorderPane(scrollPane2));
/* [끝] 분석하고자하는 UI구조 */
return borderPane;
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class DialogExam method start.
/*
* (non-Javadoc)
*
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
String sql = "select * from tbm_sm_user where user_id = :userId";
Button center = new Button("클릭");
center.setOnMouseClicked(event -> {
VariableMappingView variableMappingView = new VariableMappingView();
variableMappingView.extractVariableFromSql(sql);
variableMappingView.showAndWait(item -> {
System.out.println(item);
});
});
primaryStage.setScene(new Scene(new BorderPane(center)));
primaryStage.show();
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class SpinnerDemo method start.
@Override
public void start(final Stage stage) throws Exception {
BorderPane pane = new BorderPane(new Label("Hello world"));
Button value = new Button("Re");
pane.setStyle("-fx-background-color:forestgreen");
pane.setTop(value);
final Scene scene = new Scene(pane, 1200, 800, Color.FORESTGREEN);
// scene.getStylesheets().add(SpinnerDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());
stage.setScene(scene);
stage.setTitle("JFX Spinner Demo");
stage.show();
value.setOnAction(ev -> {
extracted((Stage) value.getScene().getWindow());
});
// extracted(stage);
System.out.println("ss");
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class TableViewWithVisibleRowCountExam method start.
/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
TableViewWithVisibleRowCount<Object> center = new TableViewWithVisibleRowCount<>();
TableColumn<Object, Object> e = new TableColumn<>();
e.setCellValueFactory(new PropertyValueFactory<>("name"));
center.getColumns().add(e);
center.getItems().add(new Person("ssss"));
center.getItems().add(new Person("ssss"));
center.getItems().add(new Person("ssss"));
center.getItems().add(new Person("ssss"));
center.getItems().add(new Person("ssss"));
center.getItems().add(new Person("ssss"));
primaryStage.setScene(new Scene(new BorderPane(center), 300, 400));
primaryStage.show();
Platform.runLater(() -> {
System.out.println(center.getVisibleRowCount());
});
}
use of javafx.scene.layout.BorderPane in project Gargoyle by callakrsos.
the class AgendaExam method start.
/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
Agenda agenda = new Agenda() {
@Override
public Skin<?> createDefaultSkin() {
return new AgendaDaysFromDisplayedSkin(this);
}
};
// setup appointment groups
final Map<String, Agenda.AppointmentGroup> lAppointmentGroupMap = new TreeMap<String, Agenda.AppointmentGroup>();
for (Agenda.AppointmentGroup lAppointmentGroup : agenda.appointmentGroups()) {
lAppointmentGroupMap.put(lAppointmentGroup.getDescription(), lAppointmentGroup);
}
// accept new appointments
agenda.newAppointmentCallbackProperty().set(new Callback<Agenda.LocalDateTimeRange, Agenda.Appointment>() {
@Override
public Agenda.Appointment call(LocalDateTimeRange dateTimeRange) {
return new Agenda.AppointmentImplLocal().withStartLocalDateTime(dateTimeRange.getStartLocalDateTime()).withEndLocalDateTime(dateTimeRange.getEndLocalDateTime()).withSummary("new").withDescription("new").withAppointmentGroup(lAppointmentGroupMap.get("group01"));
}
});
BorderPane root = new BorderPane(agenda);
root.getStylesheets().add(AgendaSkinSwitcher.class.getResource("/jfxtras/internal/scene/control/skin/agenda/" + AgendaSkinSwitcher.class.getSimpleName() + ".css").toExternalForm());
primaryStage.setScene(new Scene(root));
primaryStage.show();
}
Aggregations