use of org.ovirt.engine.ui.uicommonweb.models.macpool.MacPoolModel in project ovirt-engine by oVirt.
the class ClusterModel method initMacPools.
private void initMacPools() {
setMacPoolListModel(new SortedListModel<>(Linq.SharedMacPoolComparator));
setMacPoolModel(new MacPoolModel());
getMacPoolModel().setIsChangeable(false);
getMacPoolListModel().getItemsChangedEvent().addListener(this);
getMacPoolListModel().getSelectedItemChangedEvent().addListener(this);
startProgress();
Frontend.getInstance().runQuery(QueryType.GetAllMacPools, new QueryParametersBase(), new AsyncQuery<QueryReturnValue>(returnValue -> {
getMacPoolListModel().setItems(returnValue.getReturnValue());
stopProgress();
}));
}
Aggregations