Search in sources :

Example 1 with NetworkLabelPanel

use of org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel 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);
}
Also used : NetworkLabelModel(org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel) NetworkLabelPanel(org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel) NewNetworkLabelPanel(org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel.NewNetworkLabelPanel) ArrayList(java.util.ArrayList) NewNetworkLabelPanel(org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel.NewNetworkLabelPanel)

Aggregations

ArrayList (java.util.ArrayList)1 NetworkLabelModel (org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkLabelModel)1 NetworkLabelPanel (org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel)1 NewNetworkLabelPanel (org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkLabelPanel.NewNetworkLabelPanel)1