Package ch.fork.AdHocRailway.domain.routes

Examples of ch.fork.AdHocRailway.domain.routes.RoutePersistenceIface


        public ApplyChangesAction() {
            super("OK");
        }

        public void actionPerformed(ActionEvent e) {
            RoutePersistenceIface routePersistence = AdHocRailway.getInstance()
                    .getRoutePersistence();
            Route route = presentationModel.getBean();
            if (route.getId() == 0) {
                routePersistence.addRoute(route);
            } else {
                routePersistence.updateRoute(route);
            }
            okPressed = true;
            route.removePropertyChangeListener(RouteConfig.this);
            RouteConfig.this.setVisible(false);
View Full Code Here


                throws TurnoutException, RouteException {
            Route searchedRoute = null;

            RouteControlIface routeControl = AdHocRailway.getInstance()
                    .getRouteControl();
            RoutePersistenceIface routePersistence = AdHocRailway.getInstance()
                    .getRoutePersistence();
            searchedRoute = routePersistence.getRouteByNumber(enteredNumber);
            if (searchedRoute == null) {
                return;
            }
            if (this instanceof EnableRouteAction) {
                routeControl.enableRoute(searchedRoute);
View Full Code Here

TOP

Related Classes of ch.fork.AdHocRailway.domain.routes.RoutePersistenceIface

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.