Search in sources :

Example 1 with EntityModelDetachableWidget

use of org.ovirt.engine.ui.common.widget.editor.generic.EntityModelDetachableWidget in project ovirt-engine by oVirt.

the class AbstractVmPopupWidget method initDetachableFields.

private void initDetachableFields() {
    detachableInstanceTypesEditor = new EntityModelDetachableWidgetWithLabel(instanceTypesEditor);
    detachableMemSizeEditor = new EntityModelDetachableWidgetWithLabel(memSizeEditor);
    final EnableableFormLabel maxMemoryLabel = new EnableableFormLabel(constants.maxMemorySizePopup());
    maxMemorySizeEditor = new MemorySizeEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    detachableMaxMemorySizeEditor = new EntityModelDetachableWidgetWithInfo(maxMemoryLabel, maxMemorySizeEditor);
    isHighlyAvailableEditorWithDetachable = new EntityModelDetachableWidget(isHighlyAvailableEditor, Align.IGNORE);
    detachablePriorityEditor = new EntityModelDetachableWidgetWithLabel(priorityEditor);
    isMemoryBalloonDeviceEnabledDetachable = new EntityModelDetachableWidget(isMemoryBalloonDeviceEnabled);
    isIoThreadsEnabledDetachable = new EntityModelDetachableWidget(isIoThreadsEnabled);
    detachableMinAllocatedMemoryEditor = new EntityModelDetachableWidget(minAllocatedMemoryEditor);
    overrideMigrationDowntimeEditorWithDetachable = new EntityModelDetachableWidget(overrideMigrationDowntimeEditor, Align.IGNORE);
    overrideMigrationDowntimeEditorWithDetachable.setupContentWrapper(Align.RIGHT);
    overrideMigrationPolicyEditorWithDetachable = new EntityModelDetachableWidget(overrideMigrationPolicyEditor, Align.IGNORE);
    overrideMigrationPolicyEditorWithDetachable.setupContentWrapper(Align.RIGHT);
    migrationModeEditorWithDetachable = new EntityModelDetachableWidget(migrationModeEditor, Align.IGNORE);
    migrationModeEditorWithDetachable.setupContentWrapper(Align.RIGHT);
}
Also used : EntityModelDetachableWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel) EntityModelDetachableWidget(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelDetachableWidget) EntityModelDetachableWidgetWithLabel(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelDetachableWidgetWithLabel) MemorySizeEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.MemorySizeEntityModelTextBoxEditor)

Aggregations

EntityModelDetachableWidgetWithInfo (org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo)1 EntityModelDetachableWidget (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelDetachableWidget)1 EntityModelDetachableWidgetWithLabel (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelDetachableWidgetWithLabel)1 MemorySizeEntityModelTextBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.MemorySizeEntityModelTextBoxEditor)1 EnableableFormLabel (org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)1