Examples of PositionColumnValues


Examples of slash.navigation.converter.gui.models.PositionColumnValues

        return "edit-position-redo";
    }

    public void undo() throws CannotUndoException {
        super.undo();
        positionsModel.edit(row, new PositionColumnValues(columnToValues.getColumnIndices(), columnToValues.getPreviousValues()), true, false);
    }
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

        positionsModel.edit(row, new PositionColumnValues(columnToValues.getColumnIndices(), columnToValues.getPreviousValues()), true, false);
    }

    public void redo() throws CannotRedoException {
        super.redo();
        positionsModel.edit(row, new PositionColumnValues(columnToValues.getColumnIndices(), columnToValues.getNextValues()), true, false);
    }
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                    public boolean run(int index, NavigationPosition position) throws Exception {
                        NavigationPosition coordinates = googleMapsService.getPositionFor(position.getDescription());
                        if (coordinates != null)
                            positionsModel.edit(index,
                                    new PositionColumnValues(asList(LONGITUDE_COLUMN_INDEX, LATITUDE_COLUMN_INDEX),
                                            Arrays.<Object>asList(coordinates.getLongitude(), coordinates.getLatitude())), false, true);
                        return coordinates != null;
                    }

                    public String getErrorMessage() {
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                    public boolean run(int index, NavigationPosition position) throws Exception {
                        Double previousElevation = position.getElevation();
                        Double nextElevation = elevationServiceFacade.getElevationFor(position.getLongitude(), position.getLatitude());
                        boolean changed = nextElevation == null || !nextElevation.equals(previousElevation);
                        if (changed)
                            positionsModel.edit(index, new PositionColumnValues(ELEVATION_COLUMN_INDEX, nextElevation), false, true);
                        return changed;
                    }

                    public String getErrorMessage() {
                        return RouteConverter.getBundle().getString("add-elevation-error");
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                    }

                    public boolean run(int index, NavigationPosition position) throws Exception {
                        String description = geonamesService.getNearByFor(position.getLongitude(), position.getLatitude());
                        if (description != null)
                            positionsModel.edit(index, new PositionColumnValues(DESCRIPTION_COLUMN_INDEX, description), false, true);
                        return description != null;
                    }

                    public String getErrorMessage() {
                        return RouteConverter.getBundle().getString("add-populated-place-error");
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                    }

                    public boolean run(int index, NavigationPosition position) throws Exception {
                        String description = googleMapsService.getLocationFor(position.getLongitude(), position.getLatitude());
                        if (description != null)
                            positionsModel.edit(index, new PositionColumnValues(DESCRIPTION_COLUMN_INDEX, description), false, true);
                        return description != null;
                    }

                    public String getErrorMessage() {
                        return RouteConverter.getBundle().getString("add-postal-address-error");
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                        if (predecessor != null) {
                            Double previousSpeed = position.getSpeed();
                            Double nextSpeed = position.calculateSpeed(predecessor);
                            boolean changed = nextSpeed == null || !nextSpeed.equals(previousSpeed);
                            if (changed)
                                positionsModel.edit(index, new PositionColumnValues(SPEED_COLUMN_INDEX, nextSpeed), false, true);
                            return changed;
                        }
                        return false;
                    }
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                        if (predecessor != null && successor != null) {
                            CompactCalendar previousTime = position.getTime();
                            CompactCalendar nextTime = intrapolateTime(position, predecessor, successor);
                            boolean changed = nextTime == null || !nextTime.equals(previousTime);
                            if (changed)
                                positionsModel.edit(index, new PositionColumnValues(DATE_TIME_COLUMN_INDEX, nextTime), false, true);
                            return changed;
                        }
                        return false;
                    }
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                    public boolean run(int index, NavigationPosition position) throws Exception {
                        String previousDescription = position.getDescription();
                        String nextDescription = getNumberedPosition(position, index, digitCount, numberPattern);
                        boolean changed = nextDescription == null || !nextDescription.equals(previousDescription);
                        if (changed)
                            positionsModel.edit(index, new PositionColumnValues(DESCRIPTION_COLUMN_INDEX, nextDescription), false, true);
                        return changed;
                    }

                    public String getErrorMessage() {
                        return RouteConverter.getBundle().getString("add-number-error");
View Full Code Here

Examples of slash.navigation.converter.gui.models.PositionColumnValues

                                    columnValues.add(nextTime);
                                }
                            }
                        }

                        positionsModel.edit(index, new PositionColumnValues(columnIndices, columnValues), false, true);
                        return complementDescription && columnIndices.contains(DESCRIPTION_COLUMN_INDEX) &&
                                complementElevation && columnIndices.contains(ELEVATION_COLUMN_INDEX) &&
                                complementTime && columnIndices.contains(DATE_TIME_COLUMN_INDEX);
                    }
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.