/** * Action performed when refresh button in MainView is pressed * * @throws ServiceUnavailableException */ public void refreshPressedAction() throws ServiceUnavailableException { if (mainView.getRadioByRoute().isSelected()) { selectDirectionAction(this.lastItemEvent); } else if (mainView.getRadioByAddress().isSelected()) { searchPressedAction(this.lastAddress); } }