final Map<String, GraphicsData> graphicDisplays,
final boolean opaque) {
if (graphicDisplays == null) {
return new Object[0];
}
final MyButton removeBtn = widgetFactory.createButton("Remove", ClusterBrowser.REMOVE_ICON_SMALL, "Remove " + index);
application.makeMiniButton(removeBtn);
final GraphicsData graphicsData = graphicDisplays.get(index);
if (graphicsData == null) {
return new Object[]{index + ": unknown", "", removeBtn};
}
if (iToInfo != null) {
final GraphicsInfo vidi = graphicsToInfo.get(index);
iToInfo.put(index, vidi);
}
final MyButton iLabel = widgetFactory.createButton(index, VNC_ICON);
iLabel.setOpaque(opaque);
return new Object[]{iLabel, removeBtn};
}