List of usage examples for javafx.event ActionEvent ActionEvent
public ActionEvent(Object source, EventTarget target)
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)); }