Examples of addLocomotive()


Examples of ch.fork.AdHocRailway.domain.locomotives.LocomotivePersistenceIface.addLocomotive()

                    LocomotiveConfigurationDialog.this, newLocomotive);
            if (locomotiveConfig.isOkPressed()) {
                selectedLocomotiveGroup.getLocomotives().add(newLocomotive);
                LocomotivePersistenceIface locomotivePersistence = AdHocRailway
                    .getInstance().getLocomotivePersistence();
                locomotivePersistence.addLocomotive(newLocomotive);
            }
            List<Locomotive> locomotives = new ArrayList<Locomotive>(
                    selectedLocomotiveGroup.getLocomotives());
            locomotiveModel.setList(locomotives);
        }
View Full Code Here

Examples of ch.fork.AdHocRailway.domain.locomotives.LocomotivePersistenceIface.addLocomotive()

        public void actionPerformed(ActionEvent e) {
            Locomotive locomotive = presentationModel.getBean();
            LocomotivePersistenceIface locomotivePersistence = AdHocRailway
                    .getInstance().getLocomotivePersistence();
            if (locomotive.getId() == 0) {
                locomotivePersistence.addLocomotive(locomotive);
            } else {
                locomotivePersistence.updateLocomotive(locomotive);
            }

            okPressed = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.