Search in sources :

Example 1 with PropertyChangedEventArgs

use of org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs in project ovirt-engine by oVirt.

the class ClusterModel method setMigrateOnErrorOption.

public void setMigrateOnErrorOption(MigrateOnErrorOptions value) {
    if (migrateOnErrorOption != value) {
        migrateOnErrorOption = value;
        // webadmin use.
        switch(migrateOnErrorOption) {
            case NO:
                getMigrateOnErrorOption_NO().setEntity(true);
                getMigrateOnErrorOption_YES().setEntity(false);
                getMigrateOnErrorOption_HA_ONLY().setEntity(false);
                break;
            case YES:
                getMigrateOnErrorOption_NO().setEntity(false);
                getMigrateOnErrorOption_YES().setEntity(true);
                getMigrateOnErrorOption_HA_ONLY().setEntity(false);
                break;
            case HA_ONLY:
                getMigrateOnErrorOption_NO().setEntity(false);
                getMigrateOnErrorOption_YES().setEntity(false);
                getMigrateOnErrorOption_HA_ONLY().setEntity(true);
                break;
            default:
                break;
        }
        // $NON-NLS-1$
        onPropertyChanged(new PropertyChangedEventArgs("MigrateOnErrorOption"));
    }
}
Also used : PropertyChangedEventArgs(org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs)

Example 2 with PropertyChangedEventArgs

use of org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs in project ovirt-engine by oVirt.

the class ClusterGeneralModel method setConsoleAddressPartiallyOverridden.

public void setConsoleAddressPartiallyOverridden(Boolean consoleAddressPartiallyOverridden) {
    if (isConsoleAddressPartiallyOverridden().booleanValue() != (consoleAddressPartiallyOverridden == null ? false : consoleAddressPartiallyOverridden.booleanValue())) {
        this.consoleAddressPartiallyOverridden = consoleAddressPartiallyOverridden;
        // $NON-NLS-1$
        onPropertyChanged(new PropertyChangedEventArgs("consoleAddressPartiallyOverridden"));
    }
}
Also used : PropertyChangedEventArgs(org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs)

Example 3 with PropertyChangedEventArgs

use of org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs in project ovirt-engine by oVirt.

the class SelectionTreeNodeModel method setChildren.

public void setChildren(ArrayList<SelectionTreeNodeModel> value) {
    if ((children == null && value != null) || (children != null && !children.equals(value))) {
        children = value;
        // $NON-NLS-1$
        onPropertyChanged(new PropertyChangedEventArgs("Children"));
    }
}
Also used : PropertyChangedEventArgs(org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs)

Example 4 with PropertyChangedEventArgs

use of org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs in project ovirt-engine by oVirt.

the class SelectionTreeNodeModel method setTooltip.

public void setTooltip(String value) {
    if (!Objects.equals(tooltip, value)) {
        tooltip = value;
        // $NON-NLS-1$
        onPropertyChanged(new PropertyChangedEventArgs("Tooltip"));
    }
}
Also used : PropertyChangedEventArgs(org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs)

Example 5 with PropertyChangedEventArgs

use of org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs in project ovirt-engine by oVirt.

the class SelectionTreeNodeModel method setIsSelectedNullable.

public void setIsSelectedNullable(Boolean value) {
    if (isSelectedNullable == null && value == null) {
        return;
    }
    if (isSelectedNullable == null || !isSelectedNullable.equals(value)) {
        isSelectedNullable = value;
        // $NON-NLS-1$
        onPropertyChanged(new PropertyChangedEventArgs("IsSelectedNullable"));
        if (!getIsSelectedNotificationPrevent()) {
            isSelectedChanged();
        }
    }
}
Also used : PropertyChangedEventArgs(org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs)

Aggregations

PropertyChangedEventArgs (org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs)374 ArrayList (java.util.ArrayList)3 DiskImage (org.ovirt.engine.core.common.businessentities.storage.DiskImage)3 Collections (java.util.Collections)2 Comparator (java.util.Comparator)2 HashMap (java.util.HashMap)2 List (java.util.List)2 Map (java.util.Map)2 StorageDomain (org.ovirt.engine.core.common.businessentities.StorageDomain)2 StatsInfo (org.ovirt.engine.core.common.businessentities.gluster.StatsInfo)2 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)2 QueryType (org.ovirt.engine.core.common.queries.QueryType)2 Guid (org.ovirt.engine.core.compat.Guid)2 Frontend (org.ovirt.engine.ui.frontend.Frontend)2 UICommand (org.ovirt.engine.ui.uicommonweb.UICommand)2 AsyncDataProvider (org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider)2 DiskModel (org.ovirt.engine.ui.uicommonweb.models.vms.DiskModel)2 ConstantsManager (org.ovirt.engine.ui.uicompat.ConstantsManager)2 EventArgs (org.ovirt.engine.ui.uicompat.EventArgs)2 Collection (java.util.Collection)1