List of usage examples for javafx.scene.control Button toString
@Override
public String toString()
From source file:org.noroomattheinn.visibletesla.NotifierController.java
@FXML void defineArea(ActionEvent event) { Button b = (Button) event.getSource(); for (GeoTrigger g : geoTriggers) { if (b == g.defineArea) { showAreaDialog(g.prop);//from www . j a v a2 s.co m return; } } logger.warning("Unexpected button: " + b.toString()); }
From source file:org.noroomattheinn.visibletesla.NotifierController.java
@FXML void optionsButton(ActionEvent event) { Button b = (Button) event.getSource(); // Show the options Dialog if (b == odoHitsOptions) { showDialog(ohMessageTarget);//from w w w.java 2s . com } else if (b == chargeBecomesOptions) { showDialog(csMessageTarget); } else if (b == seOptions) { showDialog(seMessageTarget); } else if (b == socFallsOptions) { showDialog(socFallsMessageTarget); } else if (b == socHitsOptions) { showDialog(socHitsMessageTarget); } else if (b == speedHitsOptions) { showDialog(shMessageTarget); } else if (b == caOptions) { showDialog(caMessageTarget); } else if (b == unlockedOptions) { showDialog(ulMessageTarget); } else { for (GeoTrigger g : geoTriggers) { if (b == g.optionsButton) { showDialog(g.messageTarget); return; } } logger.warning("Unexpected button: " + b.toString()); } }