use of org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor in project ovirt-engine by oVirt.
the class HostConfigureLocalStoragePopupView method initialize.
private void initialize() {
dataCenterVersionEditor = new ListModelListBoxEditor<>(new NullSafeRenderer<Version>() {
@Override
public String renderNullSafe(Version object) {
return object.getValue();
}
});
clusterCpuTypeEditor = new ListModelListBoxEditor<>(new NullSafeRenderer<ServerCpu>() {
@Override
public String renderNullSafe(ServerCpu object) {
return object.getCpuName();
}
});
// Optimization options.
// $NON-NLS-1$
optimizationNoneEditor = new EntityModelRadioButtonEditor("1");
// $NON-NLS-1$
optimizationForServerEditor = new EntityModelRadioButtonEditor("1");
// $NON-NLS-1$
optimizationForDesktopEditor = new EntityModelRadioButtonEditor("1");
// $NON-NLS-1$
optimizationCustomEditor = new EntityModelRadioButtonEditor("1");
optimizationCustomEditor.setVisible(false);
countThreadsAsCoresEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
memoryOptimizationInfo = new InfoIcon(templates.italicText(constants.clusterPopupMemoryOptimizationInfo()));
memoryOptimizationInfo.setTooltipMaxWidth(TooltipWidth.W520);
cpuThreadsInfo = new InfoIcon(templates.italicText(constants.clusterPopupCpuThreadsInfo()));
cpuThreadsInfo.setTooltipMaxWidth(TooltipWidth.W620);
}
use of org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor in project ovirt-engine by oVirt.
the class VmDiskPopupWidget method initManualWidgets.
@SuppressWarnings({ "unchecked", "rawtypes" })
private void initManualWidgets() {
storageDomainEditor = new ListModelListBoxEditor<>(new StorageDomainFreeSpaceRenderer());
hostListEditor = new ListModelListBoxEditor<>(new NameRenderer<VDS>());
diskProfileEditor = new ListModelListBoxEditor<>(new NameRenderer<DiskProfile>());
quotaEditor = new ListModelListBoxEditor<>(new NameRenderer<Quota>());
interfaceEditor = new ListModelListBoxEditor<>(new EnumRenderer());
datacenterEditor = new ListModelListBoxEditor<>(new NameRenderer<StoragePool>());
cinderVolumeTypeEditor = new ListModelListBoxEditor<>();
volumeTypeEditor = new ListModelListBoxEditor<>(new EnumRenderer());
storageTypeEditor = new ListModelListBoxEditor<>(new EnumRenderer());
plugDiskToVmEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
wipeAfterDeleteEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
isBootableEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
isShareableEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
isReadOnlyEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
passDiscardEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
isUsingScsiReservationEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
isScsiPassthroughEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
isSgIoUnfilteredEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
interfaceInfoIcon = new InfoIcon(templates.italicText(constants.diskInterfaceInfo()));
cinderVolumeTypeInfoIcon = new InfoIcon(templates.italicText(constants.cinderVolumeTypeInfoIcon()));
scsiReservationInfoIcon = new InfoIcon(templates.italicText(constants.scsiReservationInfoIcon()));
}
use of org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor in project ovirt-engine by oVirt.
the class VmExportPopupView method initCheckBoxes.
void initCheckBoxes() {
forceOverride = new EntityModelCheckBoxEditor(Align.RIGHT);
collapseSnapshots = new EntityModelCheckBoxEditor(Align.RIGHT);
}
use of org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor in project ovirt-engine by oVirt.
the class HostFenceAgentPopupView method initEditors.
private void initEditors() {
pmTypeEditor = new ListModelListBoxEditor<>(new StringRenderer<String>());
pmEncryptOptionsEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
pmEncryptOptionsEditor.setUsePatternFly(true);
pmSecureEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
pmSecureEditor.setUsePatternFly(true);
fencingOptionsUrl = new Anchor(constants.fencingOptionsLabel());
}
use of org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor in project ovirt-engine by oVirt.
the class HostInstallPopupView method initEditors.
void initEditors() {
isoEditor = new ListModelListBoxEditor<>(new NullSafeRenderer<RpmVersion>() {
@Override
public String renderNullSafe(RpmVersion version) {
// Format string to contain major.minor version only.
return version.getRpmName();
}
});
// $NON-NLS-1$
rbPassword = new RadioButton("1");
// $NON-NLS-1$
rbPublicKey = new RadioButton("1");
publicKeyEditor = new StringEntityModelTextAreaLabelEditor();
activateHostAfterInstallEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
overrideIpTablesEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
}
Aggregations