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;
}
Aggregations