Search in sources :

Example 1 with NetworkGroup

use of org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkGroup in project ovirt-engine by oVirt.

the class HostSetupNetworksPopupView method updateNics.

private void updateNics(List<NetworkInterfaceModel> nics) {
    nicList.clear();
    Collections.sort(nics);
    List<NetworkGroup> groups = new ArrayList<>();
    for (NetworkInterfaceModel nic : nics) {
        groups.add(new NetworkGroup(nic, eventBus, style));
    }
    nicList.addAll(groups, !rendered);
}
Also used : NetworkInterfaceModel(org.ovirt.engine.ui.uicommonweb.models.hosts.network.NetworkInterfaceModel) ArrayList(java.util.ArrayList) NetworkGroup(org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkGroup)

Aggregations

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