use of org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel.NewNetworkLabelPanel in project ovirt-engine by oVirt.
the class HostSetupNetworksPopupView method updateLabels.
private void updateLabels(NetworkLabelModel newLabelModel, List<NetworkLabelModel> labels) {
labelsList.clear();
List<NetworkLabelPanel> labelPanels = new ArrayList<>();
labelPanels.add(new NewNetworkLabelPanel(newLabelModel, style));
Collections.sort(labels);
for (NetworkLabelModel label : labels) {
if (!label.isAttached()) {
labelPanels.add(new NetworkLabelPanel(label, style));
}
}
labelsList.addAll(labelPanels, !rendered);
}
Aggregations