Search in sources :

Example 1 with ImportTemplateGeneralSubTabView

use of org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportTemplateGeneralSubTabView 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);
}
Also used : TemplateGeneralModel(org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel) DetailModelProvider(org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider) ImportTemplateGeneralSubTabView(org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportTemplateGeneralSubTabView) TemplateListModel(org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel)

Aggregations

DetailModelProvider (org.ovirt.engine.ui.common.uicommon.model.DetailModelProvider)1 TemplateGeneralModel (org.ovirt.engine.ui.uicommonweb.models.templates.TemplateGeneralModel)1 TemplateListModel (org.ovirt.engine.ui.uicommonweb.models.templates.TemplateListModel)1 ImportTemplateGeneralSubTabView (org.ovirt.engine.ui.webadmin.section.main.view.popup.storage.backup.ImportTemplateGeneralSubTabView)1