Java Code Examples for javafx.event.ActionEvent#consume()
The following examples show how to use
javafx.event.ActionEvent#consume() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FeatureTableWindowFXMLController.java From mzmine3 with GNU General Public License v2.0 | 6 votes |
@FXML void miShowXICOnAction(ActionEvent event) { if (event != null) { event.consume(); } if (miShowXIC.isSelected()) { if (!pnSpectrumXICSplit.getItems().contains(xicPlot)) { pnSpectrumXICSplit.getItems().add(xicPlot); } } else { pnSpectrumXICSplit.getItems().remove(xicPlot); } param.getParameter(FeatureTableFXParameters.showXIC).setValue(miShowXIC.isSelected()); }
Example 2
Source File: FeatureTableWindowFXMLController.java From mzmine3 with GNU General Public License v2.0 | 6 votes |
@FXML void miShowSpectrumOnAction(ActionEvent event) { if (event != null) { event.consume(); } if (miShowSpectrum.isSelected()) { if (!pnSpectrumXICSplit.getItems().contains(spectrumPlot)) { pnSpectrumXICSplit.getItems().add(spectrumPlot); } } else { pnSpectrumXICSplit.getItems().remove(spectrumPlot); } param.getParameter(FeatureTableFXParameters.showSpectrum).setValue(miShowSpectrum.isSelected()); }
Example 3
Source File: FxAction.java From FxDock with Apache License 2.0 | 6 votes |
/** override to obtain the ActionEvent */ public void handle(ActionEvent ev) { if(isEnabled()) { if(ev != null) { if(ev.getSource() instanceof Menu) { if(ev.getSource() != ev.getTarget()) { // selection of a cascading child menu triggers action event for the parent // for some unknown reason. ignore this. return; } } ev.consume(); } execute(); } }
Example 4
Source File: ElevantoImportDialog.java From Quelea with GNU General Public License v3.0 | 4 votes |
@FXML public void onAcceptAction(ActionEvent event) { event.consume(); hide(); }
Example 5
Source File: PlanningCenterOnlineImportDialog.java From Quelea with GNU General Public License v3.0 | 4 votes |
@FXML public void onAcceptAction(ActionEvent event) { event.consume(); hide(); }