mirror of https://github.com/BURAI-team/burai.git
action of TextFields of QEFXModelerEditorController
This commit is contained in:
parent
fcdf2158a0
commit
6ad6b49d3e
|
@ -12,6 +12,8 @@ package burai.app.project.editor.modeler;
|
|||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.event.EventHandler;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.Alert.AlertType;
|
||||
|
@ -337,6 +339,15 @@ public class QEFXModelerEditorController extends QEFXAppController {
|
|||
this.superButton.setDisable(!this.isAvailSuper());
|
||||
}
|
||||
});
|
||||
|
||||
textField.setOnAction(event -> {
|
||||
if (this.superButton != null && !(this.superButton.isDisable())) {
|
||||
EventHandler<ActionEvent> handler = this.superButton.getOnAction();
|
||||
if (handler != null) {
|
||||
handler.handle(event);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private int getScaleValue(TextField textField) {
|
||||
|
@ -430,6 +441,15 @@ public class QEFXModelerEditorController extends QEFXAppController {
|
|||
this.slabButton.setDisable(!this.isAvailSlab());
|
||||
}
|
||||
});
|
||||
|
||||
textField.setOnAction(event -> {
|
||||
if (this.slabButton != null && !(this.slabButton.isDisable())) {
|
||||
EventHandler<ActionEvent> handler = this.slabButton.getOnAction();
|
||||
if (handler != null) {
|
||||
handler.handle(event);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private Integer getMillerValue(TextField textField) {
|
||||
|
|
Loading…
Reference in New Issue