Search in sources :

Example 1 with AffinityGroupModel

use of org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel in project ovirt-engine by oVirt.

the class AffinityGroupListModel method newEntity.

private void newEntity() {
    if (getWindow() != null) {
        return;
    }
    AffinityGroupModel model = new NewAffinityGroupModel(getNewAffinityGroup(), this, getClusterId(), getClusterName());
    model.init();
    setWindow(model);
}
Also used : NewAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.NewAffinityGroupModel) AffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel) EditAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel) NewAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.NewAffinityGroupModel)

Example 2 with AffinityGroupModel

use of org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel in project ovirt-engine by oVirt.

the class AffinityGroupListModel method edit.

private void edit() {
    if (getWindow() != null) {
        return;
    }
    AffinityGroup affinityGroup = getSelectedItem();
    if (affinityGroup == null) {
        return;
    }
    AffinityGroupModel model = new EditAffinityGroupModel(affinityGroup, this, getClusterId(), getClusterName());
    model.init();
    setWindow(model);
}
Also used : EditAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel) AffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel) EditAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel) NewAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.NewAffinityGroupModel) AffinityGroup(org.ovirt.engine.core.common.scheduling.AffinityGroup)

Aggregations

AffinityGroupModel (org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel)2 EditAffinityGroupModel (org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel)2 NewAffinityGroupModel (org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.NewAffinityGroupModel)2 AffinityGroup (org.ovirt.engine.core.common.scheduling.AffinityGroup)1