Search in sources :

Example 26 with Window

use of javafx.stage.Window in project Gargoyle by callakrsos.

the class BaseDialogComposite method show.

/**
	 * 다이얼로그 OPEN.
	 *
	 * @작성자 : KYJ
	 * @작성일 : 2016. 10. 14.
	 * @param node
	 */
public void show(Node node, Consumer<Stage> action) {
    Window _root = null;
    if (node != null) {
        Scene _scene = node.getScene();
        if (_scene != null) {
            _root = _scene.getWindow();
        }
    }
    show(_root, action);
}
Also used : Window(javafx.stage.Window) Scene(javafx.scene.Scene)

Example 27 with Window

use of javafx.stage.Window in project trex-stateless-gui by cisco-system-traffic-generator.

the class TrafficProfileDialogController method handleExportToYamlBtnClicked.

/**
     * Handle export to YAML button clicked
     *
     * @param event
     */
@FXML
public void handleExportToYamlBtnClicked(ActionEvent event) {
    Window owner = ((Button) (event.getSource())).getScene().getWindow();
    trafficProfile.exportProfileToYaml(owner, currentLoadedProfilesList, selectedFile.getName());
}
Also used : Window(javafx.stage.Window) FXML(javafx.fxml.FXML)

Aggregations

Window (javafx.stage.Window)27 Scene (javafx.scene.Scene)11 Stage (javafx.stage.Stage)6 FXML (javafx.fxml.FXML)4 Point2D (javafx.geometry.Point2D)4 Button (javafx.scene.control.Button)4 TextField (javafx.scene.control.TextField)4 SkinManager (com.kyj.fx.voeditor.visual.momory.SkinManager)3 File (java.io.File)3 IOException (java.io.IOException)3 Optional (java.util.Optional)3 ObservableList (javafx.collections.ObservableList)3 Node (javafx.scene.Node)3 TextArea (javafx.scene.control.TextArea)3 Tooltip (javafx.scene.control.Tooltip)3 BorderPane (javafx.scene.layout.BorderPane)3 Profile (com.exalttech.trex.remote.models.profiles.Profile)2 DialogWindow (com.exalttech.trex.ui.dialog.DialogWindow)2 TableProfile (com.exalttech.trex.ui.views.models.TableProfile)2 TrafficProfile (com.exalttech.trex.util.TrafficProfile)2