Search in sources :

Example 1 with EntityModelCheckBoxOnlyEditor

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

the class VmRunOncePopupWidget method initCheckBoxEditors.

void initCheckBoxEditors() {
    attachFloppyEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    attachIsoEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    bootMenuEnabledEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    runAsStatelessEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    runAndPauseEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    useAlternateCredentialsEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    spiceFileTransferEnabledEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    spiceCopyPasteEnabledEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    cloudInitEnabledEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    volatileRunEditor = new EntityModelCheckBoxOnlyEditor();
    volatileRunEditorWithInfo = new EntityModelWidgetWithInfo(new EnableableFormLabel(constants.volatileRunOnce()), volatileRunEditor);
    volatileRunEditorWithInfo.setExplanation(templates.italicText(constants.volatileRunInfo()));
}
Also used : EntityModelWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo) EntityModelCheckBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor) EntityModelCheckBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxOnlyEditor) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)

Example 2 with EntityModelCheckBoxOnlyEditor

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

the class AbstractVmPopupWidget method initSpiceProxy.

protected void initSpiceProxy() {
    EnableableFormLabel label = new EnableableFormLabel();
    label.setText(constants.defineSpiceProxyEnable());
    spiceProxyOverrideEnabledEditor = new EntityModelCheckBoxOnlyEditor();
    spiceProxyEnabledCheckboxWithInfoIcon = new EntityModelWidgetWithInfo(label, spiceProxyOverrideEnabledEditor, Align.LEFT);
}
Also used : EntityModelWidgetWithInfo(org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo) EnableableFormLabel(org.ovirt.engine.ui.common.widget.label.EnableableFormLabel) EntityModelCheckBoxOnlyEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxOnlyEditor)

Aggregations

EntityModelWidgetWithInfo (org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo)2 EntityModelCheckBoxOnlyEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxOnlyEditor)2 EnableableFormLabel (org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)2 EntityModelCheckBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor)1