use of javafx.event.EventType in project Board-Instrumentation-Framework by intel.
the class RadialMenu method fireMenuEvent.
public void fireMenuEvent(final MenuEvent EVENT) {
fireEvent(EVENT);
final EventType TYPE = EVENT.getEventType();
final EventHandler<MenuEvent> HANDLER;
if (MenuEvent.MENU_OPEN_STARTED == TYPE) {
HANDLER = getOnMenuOpenStarted();
} else if (MenuEvent.MENU_OPEN_FINISHED == TYPE) {
HANDLER = getOnMenuOpenFinished();
} else if (MenuEvent.MENU_CLOSE_STARTED == TYPE) {
HANDLER = getOnMenuCloseStarted();
} else if (MenuEvent.MENU_CLOSE_FINISHED == TYPE) {
HANDLER = getOnMenuCloseFinished();
} else {
HANDLER = null;
}
if (HANDLER != null) {
HANDLER.handle(EVENT);
}
}
Aggregations