Search in sources :

Example 1 with EntityModelDetachableWidgetWithInfo

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

Example 2 with EntityModelDetachableWidgetWithInfo

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()));
}
Also used : EntityModelDetachableWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)

Example 3 with EntityModelDetachableWidgetWithInfo

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()));
}
Also used : EntityModelDetachableWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo) StringEntityModelTextBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)

Aggregations

EntityModelDetachableWidgetWithInfo (org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo)3 EnableableFormLabel (org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)3 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 StringEntityModelTextBoxOnlyEditor (org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor)1