use of org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider in project ovirt-engine by oVirt.
the class ImportTemplatePopupView method initGeneralSubTabView.
@Override
protected void initGeneralSubTabView() {
ScrollPanel generalPanel = new ScrollPanel();
DetailModelProvider<TemplateListModel, TemplateGeneralModel> modelProvider = new DetailModelProvider<TemplateListModel, TemplateGeneralModel>() {
@Override
public TemplateGeneralModel getModel() {
return (TemplateGeneralModel) importModel.getDetailModels().get(0);
}
@Override
public void onSubTabSelected() {
}
@Override
public void onSubTabDeselected() {
}
@Override
public void activateDetailModel() {
}
@Override
public TemplateListModel getMainModel() {
// Not used, here to satisfy interface contract.
return null;
}
};
generalView = new ImportTemplateGeneralSubTabView(modelProvider);
generalPanel.add(generalView);
subTabLayoutPanel.add(generalPanel, constants.generalImpTempTab());
}
use of org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider in project ovirt-engine by oVirt.
the class ImportVmFromExportDomainPopupView method initGeneralSubTabView.
protected void initGeneralSubTabView() {
ScrollPanel generalPanel = new ScrollPanel();
DetailModelProvider<ImportVmModel, VmImportGeneralModel> modelProvider = new DetailModelProvider<ImportVmModel, VmImportGeneralModel>() {
@Override
public VmImportGeneralModel getModel() {
VmImportGeneralModel model = (VmImportGeneralModel) importModel.getDetailModels().get(0);
model.setSource(ImportSource.EXPORT_DOMAIN);
return model;
}
@Override
public void onSubTabSelected() {
}
@Override
public void onSubTabDeselected() {
}
@Override
public void activateDetailModel() {
}
@Override
public ImportVmModel getMainModel() {
// Not used, here to satisfy interface contract.
return null;
}
};
generalView = new ImportVmGeneralSubTabView(modelProvider);
modelProvider.getModel().clearAndRegisterNameAndOsListeners();
generalPanel.add(generalView);
subTabLayoutPanel.add(generalPanel, constants.importVmGeneralSubTabLabel());
}
use of org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider in project ovirt-engine by oVirt.
the class RegisterTemplateInfoPanel method initGeneralForm.
private void initGeneralForm() {
DetailModelProvider<TemplateListModel, TemplateGeneralModel> modelProvider = new DetailModelProvider<TemplateListModel, TemplateGeneralModel>() {
@Override
public TemplateGeneralModel getModel() {
return getTemplateGeneralModel();
}
@Override
public void onSubTabSelected() {
}
@Override
public void onSubTabDeselected() {
}
@Override
public void activateDetailModel() {
}
@Override
public TemplateListModel getMainModel() {
// Not used, here to satisfy interface contract.
return null;
}
};
generalView = new ImportTemplateGeneralSubTabView(modelProvider);
}
use of org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider in project ovirt-engine by oVirt.
the class ImportVmFromExternalProviderPopupView method initGeneralSubTabView.
protected void initGeneralSubTabView() {
ScrollPanel generalPanel = new ScrollPanel();
DetailModelProvider<ImportVmModel, VmImportGeneralModel> modelProvider = new DetailModelProvider<ImportVmModel, VmImportGeneralModel>() {
@Override
public VmImportGeneralModel getModel() {
VmImportGeneralModel model = (VmImportGeneralModel) importModel.getDetailModels().get(0);
model.setSource(ImportSource.VMWARE);
return model;
}
@Override
public void onSubTabSelected() {
}
@Override
public void onSubTabDeselected() {
}
@Override
public void activateDetailModel() {
}
@Override
public ImportVmModel getMainModel() {
// Not used, here to satisfy interface contract.
return null;
}
};
generalView = new ImportVmGeneralSubTabView(modelProvider);
modelProvider.getModel().clearAndRegisterNameAndOsListeners();
generalPanel.add(generalView);
subTabLayoutPanel.add(generalPanel, constants.importVmGeneralSubTabLabel());
}
use of org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider in project ovirt-engine by oVirt.
the class RegisterVmInfoPanel method initGeneralForm.
private void initGeneralForm() {
DetailModelProvider<ImportVmModel, VmImportGeneralModel> modelProvider = new DetailModelProvider<ImportVmModel, VmImportGeneralModel>() {
@Override
public VmImportGeneralModel getModel() {
return getVmGeneralModel();
}
@Override
public void onSubTabSelected() {
}
@Override
public void onSubTabDeselected() {
}
@Override
public void activateDetailModel() {
}
@Override
public ImportVmModel getMainModel() {
// Not used, here to satisfy interface contract.
return null;
}
};
generalView = new ImportVmGeneralSubTabView(modelProvider);
}
Aggregations