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);
}
Aggregations