Example usage for javafx.event ActionEvent ActionEvent

List of usage examples for javafx.event ActionEvent ActionEvent

Introduction

In this page you can find the example usage for javafx.event ActionEvent ActionEvent.

Prototype

public ActionEvent(Object source, EventTarget target) 

Source Link

Document

Construct a new ActionEvent with the specified event source and target.

Usage

From source file:edu.mit.lib.handbag.Controller.java

public void setAgent(String agent) {
    this.agent = agent;
    Event.fireEvent(workflowChoiceBox, new ActionEvent("agent", null));
}

From source file:com.jscriptive.moneyfx.ui.chart.ChartFrame.java

private void reEnactToggleSelection() {
    ToggleButton selectedToggle = (ToggleButton) chartToggleGroup.getSelectedToggle();
    if (selectedToggle == null) {
        return;//w  w  w  . j av  a  2  s. c  om
    }
    EventHandler<ActionEvent> onAction = selectedToggle.getOnAction();
    onAction.handle(new ActionEvent(selectedToggle, selectedToggle));
}