use of org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo 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);
}
use of org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo in project ovirt-engine by oVirt.
the class AbstractVmPopupWidget method initThreadsPerCore.
private void initThreadsPerCore() {
EnableableFormLabel label = new EnableableFormLabel();
label.setText(constants.threadsPerCore());
threadsPerCoreEditor = new ListModelListBoxOnlyEditor<>(IntegerRenderer.instance(), new ModeSwitchingVisibilityRenderer());
threadsPerCoreEditorWithInfoIcon = new EntityModelDetachableWidgetWithInfo(label, threadsPerCoreEditor);
threadsPerCoreEditorWithInfoIcon.setExplanation(multiLineItalicSafeHtml(messages.threadsPerCoreInfo()));
}
use of org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo in project ovirt-engine by oVirt.
the class AbstractVmPopupWidget method initTotalVcpus.
private void initTotalVcpus() {
EnableableFormLabel label = new EnableableFormLabel();
label.setText(constants.numOfVCPUs());
// $NON-NLS-1$
label.addStyleName("numCPUs_pfly_fix");
totalvCPUsEditor = new StringEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
totalvCPUsEditorWithInfoIcon = new EntityModelDetachableWidgetWithInfo(label, totalvCPUsEditor);
totalvCPUsEditorWithInfoIcon.setExplanation(templates.italicText(messages.hotPlugUnplugCpuWarning()));
}
Aggregations