use of org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo in project ovirt-engine by oVirt.
the class GlusterVolumeSnapshotCreatePopupView method initEditors.
private void initEditors() {
snapshotNameEditor = new StringEntityModelTextBoxEditor();
snapshotNameEditor.hideLabel();
EnableableFormLabel label = new EnableableFormLabel();
label.setText(constants.volumeSnapshotNamePrefixLabel());
snapshotNameEditorWithInfo = new EntityModelWidgetWithInfo(label, snapshotNameEditor);
snapshotNameEditorWithInfo.setExplanation(templates.italicText(constants.snapshotNameInfo()));
startAtEditor = new EntityModelDateTimeBoxEditor();
startAtEditor.getContentWidget().setDateTimeFormat(GwtBootstrapDateTimePicker.DEFAULT_DATE_TIME_FORMAT);
startAtEditor.getContentWidget().showDateAndTime();
daysOfWeekEditor = new ListModelCheckBoxGroupEditor<>(new AbstractRenderer<DayOfWeek>() {
@Override
public String render(DayOfWeek object) {
return object.toString().substring(0, 3);
}
});
endDate = new EntityModelDateTimeBoxEditor();
endDate.getContentWidget().setDateTimeFormat(GwtBootstrapDateTimePicker.DEFAULT_DATE_TIME_FORMAT);
endDate.getContentWidget().showDateAndTime();
executionTimeEditor = new EntityModelDateTimeBoxEditor();
// $NON-NLS-1$
executionTimeEditor.getContentWidget().setDateTimeFormat("hh:ii");
executionTimeEditor.getContentWidget().showTimeOnly();
recurrenceEditor = new ListModelListBoxEditor<>(new AbstractRenderer<GlusterVolumeSnapshotScheduleRecurrence>() {
@Override
public String render(GlusterVolumeSnapshotScheduleRecurrence object) {
return EnumTranslator.getInstance().translate(object);
}
});
}
use of org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo 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()));
}
use of org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo 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()));
}
use of org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo 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()));
}
use of org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo 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);
}
Aggregations