Search in sources :

Example 11 with EnumRenderer

use of org.ovirt.engine.ui.common.widget.renderer.EnumRenderer in project ovirt-engine by oVirt.

the class AffinityGroupPopupView method initEditors.

private void initEditors() {
    vmAffinityRuleEditor = new ListModelListBoxEditor<>(new EnumRenderer<EntityAffinityRule>());
    vmAffinityRuleEditor.hideLabel();
    vmAffinityRuleEditorInfoIcon = new InfoIcon(templates.italicText(constants.affinityGroupVmPolarityInfo()));
    vmAffinityEnforcingEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    vmAffinityEnforcingEditor.hideLabel();
    vmAffinityEnforcingEditorInfoIcon = new InfoIcon(templates.italicText(constants.affinityGroupEnforceInfo()));
    hostAffinityRuleEditor = new ListModelListBoxEditor<>(new EnumRenderer<EntityAffinityRule>());
    hostAffinityRuleEditor.hideLabel();
    hostAffinityRuleEditorInfoIcon = new InfoIcon(templates.italicText(constants.affinityGroupHostPolarityInfo()));
    hostAffinityEnforcingEditor = new EntityModelCheckBoxEditor(Align.RIGHT);
    hostAffinityEnforcingEditor.hideLabel();
    hostAffinityEnforcingEditorInfoIcon = new InfoIcon(templates.italicText(constants.affinityGroupEnforceInfo()));
}
Also used : EnumRenderer(org.ovirt.engine.ui.common.widget.renderer.EnumRenderer) InfoIcon(org.ovirt.engine.ui.common.widget.dialog.InfoIcon) EntityModelCheckBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor)

Aggregations

EnumRenderer (org.ovirt.engine.ui.common.widget.renderer.EnumRenderer)11 EntityModelCheckBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelCheckBoxEditor)9 EntityModelRadioButtonEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelRadioButtonEditor)5 NameRenderer (org.ovirt.engine.ui.common.widget.renderer.NameRenderer)5 NullSafeRenderer (org.ovirt.engine.ui.common.widget.renderer.NullSafeRenderer)4 AbstractRenderer (com.google.gwt.text.shared.AbstractRenderer)3 OpenstackNetworkProviderProperties (org.ovirt.engine.core.common.businessentities.OpenstackNetworkProviderProperties)2 EntityModelWidgetWithInfo (org.ovirt.engine.ui.common.widget.EntityModelWidgetWithInfo)2 InfoIcon (org.ovirt.engine.ui.common.widget.dialog.InfoIcon)2 GroupedListModelListBox (org.ovirt.engine.ui.common.widget.editor.GroupedListModelListBox)2 EnableableFormLabel (org.ovirt.engine.ui.common.widget.label.EnableableFormLabel)2 BooleanRendererWithNullText (org.ovirt.engine.ui.common.widget.renderer.BooleanRendererWithNullText)2 EntityModel (org.ovirt.engine.ui.uicommonweb.models.EntityModel)2 Context (com.google.gwt.cell.client.Cell.Context)1 SafeHtmlBuilder (com.google.gwt.safehtml.shared.SafeHtmlBuilder)1 NumberFormatRenderer (com.google.gwt.text.client.NumberFormatRenderer)1 Column (com.google.gwt.user.cellview.client.Column)1 RadioButton (com.google.gwt.user.client.ui.RadioButton)1 ArchitectureType (org.ovirt.engine.core.common.businessentities.ArchitectureType)1 BootSequence (org.ovirt.engine.core.common.businessentities.BootSequence)1