Search in sources :

Example 1 with StringEntityModelTextBoxOnlyEditor

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

the class AbstractVmPopupWidget method initTextBoxEditors.

private void initTextBoxEditors() {
    templateVersionNameEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    vmIdEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    descriptionEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    commentEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    numOfVmsEditor = new IntegerEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    cpuPinning = new StringEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
    cpuSharesAmountEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
    kernel_pathEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    initrd_pathEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    kernel_parametersEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    nameEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
    nameEditor.hideLabel();
    prestartedVmsEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
    editPrestartedVmsEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
    maxAssignedVmsPerUserEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
    editMaxAssignedVmsPerUserEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
}
Also used : IntegerEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor) StringEntityModelTextBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor) IntegerEntityModelTextBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxOnlyEditor) StringEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxEditor)

Example 2 with StringEntityModelTextBoxOnlyEditor

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

the class ProviderSecretPopupView method initManualWidgets.

@SuppressWarnings("unchecked")
private void initManualWidgets() {
    usageTypeEditor = new ListModelListBoxEditor<>(new EnumRenderer());
    uuidEditor = new StringEntityModelTextBoxOnlyEditor();
    uuidEditorWithInfo = new EntityModelWidgetWithInfo(new EnableableFormLabel(constants.idLibvirtSecret()), uuidEditor);
    uuidEditorWithInfo.setExplanation(SafeHtmlUtils.fromTrustedString(constants.idLibvirtSecretHint()));
}
Also used : EnumRenderer(org.ovirt.engine.ui.common.widget.renderer.EnumRenderer) EntityModelWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo) StringEntityModelTextBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)

Example 3 with StringEntityModelTextBoxOnlyEditor

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

the class VmInitWidget method initEditorsWithIcon.

private void initEditorsWithIcon() {
    windowsHostnameEditor = new StringEntityModelTextBoxOnlyEditor();
    EnableableFormLabel label = new EnableableFormLabel();
    label.setText(constants.cloudInitHostnameLabel());
    windowsHostnameEditorWithInfo = new EntityModelWidgetWithInfo(label, windowsHostnameEditor);
    windowsHostnameEditorWithInfo.setExplanation(templates.italicText(constants.windowsHostNameInfo()));
}
Also used : EntityModelWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo) StringEntityModelTextBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)

Example 4 with StringEntityModelTextBoxOnlyEditor

use of org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor 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

StringEntityModelTextBoxOnlyEditor (org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxOnlyEditor)4 EnableableFormLabel (org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)3 EntityModelWidgetWithInfo (org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo)2 EntityModelDetachableWidgetWithInfo (org.ovirt.engine.ui.common.widget.EntityModelDetachableWidgetWithInfo)1 IntegerEntityModelTextBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor)1 IntegerEntityModelTextBoxOnlyEditor (org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxOnlyEditor)1 StringEntityModelTextBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.StringEntityModelTextBoxEditor)1 EnumRenderer (org.ovirt.engine.ui.common.widget.renderer.EnumRenderer)1