Examples of onMousePressedProperty()


Examples of javafx.scene.layout.StackPane.onMousePressedProperty()

                tabField.setAccessible(true);
                final FX2Tab tab = (FX2Tab) tabField.get(n);
                Field btnField = n.getClass().getDeclaredField("closeBtn");
                btnField.setAccessible(true);
                StackPane b = (StackPane) btnField.get(n);
                final EventHandler<? super MouseEvent> originalHandler = b.onMousePressedProperty().get();
                b.setOnMousePressed(new EventHandler<MouseEvent>() {

                  @Override
                  public void handle(MouseEvent event) {
                    if( tab.getCloseVetoHandler() == null || ! tab.getCloseVetoHandler().call(tab) ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.