}
final MyButton removeBtn = widgetFactory.createButton("Remove",
ClusterBrowser.REMOVE_ICON_SMALL,
"Remove " + mac);
application.makeMiniButton(removeBtn);
final InterfaceData interfaceData = interfaces.get(mac);
if (interfaceData == null) {
return new Object[]{mac, "unknown", removeBtn};
}
final StringBuilder interf = new StringBuilder(20);
interf.append(mac);
final String dev = interfaceData.getTargetDev();
if (dev != null) {
interf.append(' ');
interf.append(dev);
}
if (iToInfo != null) {
final InterfaceInfo vii = interfaceToInfo.get(mac);
iToInfo.put(interf.toString(), vii);
}
final MyButton iLabel = widgetFactory.createButton(interf.toString(), NetInfo.NET_INTERFACE_ICON_LARGE);
iLabel.setOpaque(opaque);
final StringBuilder source = new StringBuilder(20);
final String type = interfaceData.getType();
final String s;
if ("network".equals(type)) {
s = interfaceData.getSourceNetwork();
} else {
s = interfaceData.getSourceBridge();
}
if (s != null) {
source.append(type);
source.append(" : ");
source.append(s);