Package javafx.event

Examples of javafx.event.ActionEvent


     * false.
     */
    public void fire() {
        if (!isDisabled()) {
            setSelected(!isSelected());
            fireEvent(new ActionEvent());
        }
    }
View Full Code Here


          workflowidDetail.textProperty().bindBidirectional(newValue.workflowInstanceIdRegEx);
          correlationidDetail.textProperty().bindBidirectional(newValue.correlationIdRegEx);
          conversionidDetail.textProperty().bindBidirectional(newValue.conversationIdRegEx);
          messageTypDetail.textProperty().bindBidirectional(newValue.messageTypeRegEx);
          idDetail.textProperty().bindBidirectional(newValue.idRegEx);
          colorDetail.fireEvent(new ActionEvent());//javafx bug workaround else color chooser wont update http://javafx-jira.kenai.com/browse/RT-26633
        }
      }
    });
    colorTable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
   
View Full Code Here

        getNode().setCursor(Cursor.DEFAULT);


        getNode().onMouseClickedProperty().set((EventHandler<MouseEvent>) (MouseEvent t) -> {
            if (c.getOnAction()!=null) {
                c.getOnAction().handle(new ActionEvent(t, c));
            }
        });

    }
View Full Code Here

                            if (Window.this.getParent() == null) {
                                return;
                            }

                            if (getOnCloseAction() != null) {
                                getOnCloseAction().handle(new ActionEvent(this, Window.this));
                            }

                            // if someone manually removed us from parent, we don't
                            // do anything
                            if (Window.this.getParent() != null) {
                                NodeUtil.removeFromParent(Window.this);
                            }

                            if (getOnClosedAction() != null) {
                                getOnClosedAction().handle(new ActionEvent(this, Window.this));
                            }
                        }
                    }
                });
            }
View Full Code Here

        if (getCloseTransition() != null) {
            getCloseTransition().play();
        } else {
            if (getOnCloseAction() != null) {
                getOnCloseAction().handle(new ActionEvent(this, Window.this));
            }
            NodeUtil.removeFromParent(Window.this);
            if (getOnClosedAction() != null) {
                getOnClosedAction().handle(new ActionEvent(this, Window.this));
            }
        }
    }
View Full Code Here

  this.addEventHandler(MouseEvent.MOUSE_CLICKED,
    new EventHandler<MouseEvent>() {

        @Override
        public void handle(final MouseEvent paramT) {
      actionHandler.handle(new ActionEvent(
        paramT.getSource(), paramT.getTarget()));
        }
    });
  this.redraw();
    }
View Full Code Here

        getNode().onMouseClickedProperty().set(new EventHandler<MouseEvent>() {

            @Override
            public void handle(MouseEvent t) {
                if (c.getOnAction()!=null) {
                    c.getOnAction().handle(new ActionEvent(t, c));
                }
            }
        });
       
//        // JDK 8 code
View Full Code Here

                            if (Window.this.getParent() == null) {
                                return;
                            }

                            if (getOnCloseAction() != null) {
                                getOnCloseAction().handle(new ActionEvent(this, Window.this));
                            }

                            // if someone manually removed us from parent, we don't
                            // do anything
                            if (Window.this.getParent() != null) {
                                NodeUtil.removeFromParent(Window.this);
                            }

                            if (getOnClosedAction() != null) {
                                getOnClosedAction().handle(new ActionEvent(this, Window.this));
                            }
                        }
                    }
                });
            }
View Full Code Here

        if (getCloseTransition() != null) {
            getCloseTransition().play();
        } else {
            if (getOnCloseAction() != null) {
                getOnCloseAction().handle(new ActionEvent(this, Window.this));
            }
            NodeUtil.removeFromParent(Window.this);
            if (getOnClosedAction() != null) {
                getOnClosedAction().handle(new ActionEvent(this, Window.this));
            }
        }
    }
View Full Code Here

                    //These 2 messages are sent when the firmware updater has begun updating or finished updating.
                    case ("DISCONNECT"):
                        onDisconnectActions();
                        break;
                    case ("RECONNECT"):
                        handleConnect(new ActionEvent());
                        break;

                    default:
                        logger.error("[!]Invalid Routing Key: " + ROUTING_KEY);
                }
View Full Code Here

TOP

Related Classes of javafx.event.ActionEvent

Copyright © 2018 www.massapicom. 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.