Examples of DeviceProperties


Examples of ch.rakudave.jnetmap.view.properties.DeviceProperties

              .getGraphLayout();
          graph.addVertex(newVertex);
          layout.setLocation(newVertex, vv.getRenderContext()
              .getMultiLayerTransformer().inverseTransform(
                  e.getPoint()));
          new DeviceProperties(owner, newVertex, true);
        }
      }
      vv.repaint();
    }
  }
View Full Code Here

Examples of ch.rakudave.jnetmap.view.properties.DeviceProperties

          }
        });
        popup.add(new AbstractAction(Lang.get("device.properties"), Icons.get("properties")) {
          @Override
          public void actionPerformed(ActionEvent e) {
            new DeviceProperties(owner, vertex, false);
          }
        });
        popup.add(new AbstractAction(Lang.get("action.delete"), Icons.get("remove")) {
          public void actionPerformed(ActionEvent e) {
            graph.removeVertex(vertex);
            vv.repaint();
          }
        });
      } else if (edge != null) {
        pickedEdgeState.pick(edge, false);
        popup.add(new AbstractAction(Lang.get("connection.properties"), Icons.get("properties")) {
          @Override
          public void actionPerformed(ActionEvent e) {
            Pair<Device> p = Controller.getCurrentMap().getEndpoints(edge);
            if (p.getFirst().equals(p.getSecond())) {
              new InterfaceProperties(owner, p.getFirst().getInterfaceFor(edge));
            } else {
              new ConnectionProperties(owner, edge);
            }
          }
        });
        popup.add(new AbstractAction(Lang.get("action.delete"), Icons.get("remove")) {
          public void actionPerformed(ActionEvent e) {
            graph.removeEdge(edge);
            vv.repaint();
          }
        });
      } else {
        popup.add(new AbstractAction(Lang.get("action.add"), Icons.get("add")) {
          public void actionPerformed(ActionEvent e) {
            Device newVertex = vertexFactory.create();
            new DeviceProperties(owner, newVertex, true);
            graph.addVertex(newVertex);
            layout.setLocation(newVertex, vv.getRenderContext()
              .getMultiLayerTransformer().inverseTransform(p));
            vv.repaint();
          }
View Full Code Here

Examples of ch.rakudave.jnetmap.view.properties.DeviceProperties

      buttons.setMaximumSize(new Dimension(2000, 30));
      prefs = new JButton(new AbstractAction(Lang.get("menu.file.properties"), Icons.get("properties")) {
        @Override
        public void actionPerformed(ActionEvent e) {
          if (current != null)
            new DeviceProperties(owner, current, false);
        }
      });
        prefs.setEnabled(false);
      ports = new JButton(new AbstractAction(Lang.getNoHTML("port.scan"), Icons.get("find")) {
        @Override
View Full Code Here

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

        this.archiveHandler = archiveHandler;
        this.positionStore = positionStore;
        deviceStore.addStoreHandlers(deviceStoreHandlers);
        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, ?>>();
View Full Code Here

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

    public DeviceView(DeviceHandler deviceHandler, SettingsHandler settingsHandler, ListStore<Device> deviceStore) {
        this.deviceHandler = deviceHandler;
        this.settingsHandler = settingsHandler;
        this.deviceStore = deviceStore;

        DeviceProperties deviceProperties = GWT.create(DeviceProperties.class);

        List<ColumnConfig<Device, ?>> columnConfigList = new LinkedList<ColumnConfig<Device, ?>>();
        columnConfigList.add(new ColumnConfig<Device, String>(deviceProperties.name(), 0, "Name"));
        columnConfigList.add(new ColumnConfig<Device, String>(deviceProperties.uniqueId(), 0, "Unique Identifier"));
        columnModel = new ColumnModel<Device>(columnConfigList);

        uiBinder.createAndBindUi(this);

        grid.getSelectionModel().addSelectionChangedHandler(this);
View Full Code Here

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

    private DeviceView deviceView;

    public DeviceController(DeviceHandler deviceHandler, DeviceView.SettingsHandler settingsHandler) {
        this.deviceHandler = deviceHandler;
        DeviceProperties deviceProperties = GWT.create(DeviceProperties.class);
        deviceStore = new ListStore<Device>(deviceProperties.id());
        deviceView = new DeviceView(this, settingsHandler, deviceStore);
    }
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.