Package org.traccar.web.client.model

Examples of org.traccar.web.client.model.PositionProperties


        this.deviceStore = deviceStore;

        DeviceProperties deviceProperties = GWT.create(DeviceProperties.class);
        deviceCombo = new ComboBox<Device>(deviceStore, deviceProperties.label());

        PositionProperties positionProperties = GWT.create(PositionProperties.class);

        List<ColumnConfig<Position, ?>> columnConfigList = new LinkedList<ColumnConfig<Position, ?>>();

        columnConfigList.add(new ColumnConfig<Position, Boolean>(positionProperties.valid(), 0, "Valid"));

        ColumnConfig<Position, Date> columnConfigDate = new ColumnConfig<Position, Date>(positionProperties.time(), 0, "Time");
        columnConfigDate.setCell(new DateCell(ApplicationContext.getInstance().getFormatterUtil().getTimeFormat()));
        columnConfigList.add(columnConfigDate);

        columnConfigList.add(new ColumnConfig<Position, Double>(positionProperties.latitude(), 0, "Latitude"));
        columnConfigList.add(new ColumnConfig<Position, Double>(positionProperties.longitude(), 0, "Longitude"));
        columnConfigList.add(new ColumnConfig<Position, Double>(positionProperties.altitude(), 0, "Altitude"));

        ColumnConfig<Position, Double> columnConfigDouble = new ColumnConfig<Position, Double>(positionProperties.speed(), 0, "Speed");
        columnConfigDouble.setCell(new NumberCell<Double>(ApplicationContext.getInstance().getFormatterUtil().getSpeedFormat()));
        columnConfigList.add(columnConfigDouble);

        columnConfigList.add(new ColumnConfig<Position, Double>(positionProperties.course(), 0, "Course"));
        columnConfigList.add(new ColumnConfig<Position, Double>(positionProperties.power(), 0, "Power"));

        columnModel = new ColumnModel<Position>(columnConfigList);

        uiBinder.createAndBindUi(this);
View Full Code Here


    private ArchiveView archiveView;

    public ArchiveController(ArchiveHandler archiveHandler, ListStore<Device> deviceStore) {
        this.archiveHandler = archiveHandler;
        PositionProperties positionProperties = GWT.create(PositionProperties.class);
        positionStore = new ListStore<Position>(positionProperties.id());
        archiveView = new ArchiveView(this, positionStore, deviceStore);
    }
View Full Code Here

TOP

Related Classes of org.traccar.web.client.model.PositionProperties

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.