Package slash.navigation.converter.gui.helpers

Examples of slash.navigation.converter.gui.helpers.RoutingServiceFacade


            }
        }, getKeyStroke(VK_ESCAPE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
    }

    private void handleRoutingServiceUpdate() {
        RoutingServiceFacade routingServiceFacade = RouteConverter.getInstance().getRoutingServiceFacade();
        RoutingService service = routingServiceFacade.getRoutingService();
        textFieldRoutingServicePath.setEnabled(service.isDownload());
        textFieldRoutingServicePath.setText(service.isDownload() ? service.getPath() : "");
        buttonChooseRoutingServicePath.setEnabled(service.isDownload());
        checkBoxAvoidFerries.setSelected(routingServiceFacade.isAvoidFerries());
        checkBoxAvoidHighways.setSelected(routingServiceFacade.isAvoidHighways());
        checkBoxAvoidTolls.setSelected(routingServiceFacade.isAvoidTolls());
        updateTravelModes();
    }
View Full Code Here


        checkBoxAvoidTolls.setSelected(routingServiceFacade.isAvoidTolls());
        updateTravelModes();
    }

    private void updateTravelModes() {
        RoutingServiceFacade serviceFacade = RouteConverter.getInstance().getRoutingServiceFacade();
        RoutingService service = serviceFacade.getRoutingService();

        MutableComboBoxModel<TravelMode> travelModeModel = new DefaultComboBoxModel<>();
        for (TravelMode travelMode : service.getAvailableTravelModes())
            travelModeModel.addElement(travelMode);
        travelModeModel.setSelectedItem(serviceFacade.getTravelMode());
        comboboxTravelMode.setModel(travelModeModel);
    }
View Full Code Here

TOP

Related Classes of slash.navigation.converter.gui.helpers.RoutingServiceFacade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.