Search in sources :

Example 6 with PropertyPanel

use of org.onosproject.ui.topo.PropertyPanel in project onos by opennetworkinglab.

the class TopologyViewMessageHandlerBase method deviceDetails.

// Generates a property panel model for device details response
protected PropertyPanel deviceDetails(DeviceId deviceId) {
    log.debug("generate prop panel data for device {}", deviceId);
    Device device = services.device().getDevice(deviceId);
    Annotations annot = device.annotations();
    String proto = annot.value(AnnotationKeys.PROTOCOL);
    String title = friendlyDevice(deviceId);
    LionBundle lion = getLionBundle(LION_TOPO);
    PropertyPanel pp = new PropertyPanel(title, lookupGlyph(device)).navPath(DEVICE_NAV_PATH).id(deviceId.toString());
    addDeviceBasicProps(pp, deviceId, device, proto, lion);
    addLocationProps(pp, annot, lion);
    addDeviceCountStats(pp, deviceId, lion);
    addDeviceCoreButtons(pp);
    return pp;
}
Also used : Annotations(org.onosproject.net.Annotations) Device(org.onosproject.net.Device) TopoUtils.compactLinkString(org.onosproject.ui.topo.TopoUtils.compactLinkString) LionBundle(org.onosproject.ui.lion.LionBundle) PropertyPanel(org.onosproject.ui.topo.PropertyPanel)

Aggregations

PropertyPanel (org.onosproject.ui.topo.PropertyPanel)6 LionBundle (org.onosproject.ui.lion.LionBundle)5 TopoUtils.compactLinkString (org.onosproject.ui.topo.TopoUtils.compactLinkString)5 Annotations (org.onosproject.net.Annotations)2 Device (org.onosproject.net.Device)1 Host (org.onosproject.net.Host)1 Topology (org.onosproject.net.topology.Topology)1