Search in sources :

Example 1 with EntityModelTextBoxEditor

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

the class PoolEditPopupWidget method createNumOfDesktopEditors.

@Override
protected void createNumOfDesktopEditors() {
    increaseNumOfVmsEditor = new IntegerEntityModelTextBoxEditor();
    numOfVmsEditor = new EntityModelTextBoxEditor<>(new ToStringEntityModelRenderer<Integer>(), text -> {
        // forwards to the currently active editor
        return increaseNumOfVmsEditor.asEditor().getValue();
    });
}
Also used : EntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelTextBoxEditor) PopupWidgetConfigMap(org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap) UnitVmModel(org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel) ElementIdHandler(org.ovirt.engine.ui.common.idhandler.ElementIdHandler) PopupWidgetConfig.simpleField(org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.simpleField) GWT(com.google.gwt.core.client.GWT) IntegerEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor) PopupWidgetConfig.hiddenField(org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField) ToStringEntityModelRenderer(org.ovirt.engine.ui.common.widget.editor.generic.ToStringEntityModelRenderer) IntegerEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor) ToStringEntityModelRenderer(org.ovirt.engine.ui.common.widget.editor.generic.ToStringEntityModelRenderer)

Example 2 with EntityModelTextBoxEditor

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

the class PoolNewPopupWidget method createNumOfDesktopEditors.

@Override
protected void createNumOfDesktopEditors() {
    numOfVmsEditor = new IntegerEntityModelTextBoxEditor();
    increaseNumOfVmsEditor = new EntityModelTextBoxEditor<>(new ToStringEntityModelRenderer<Integer>(), text -> {
        // forwards to the currently active editor
        return numOfVmsEditor.asEditor().getValue();
    });
}
Also used : EntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.EntityModelTextBoxEditor) PopupWidgetConfigMap(org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap) AbstractVmPopupWidget(org.ovirt.engine.ui.common.widget.uicommon.popup.AbstractVmPopupWidget) UnitVmModel(org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel) ElementIdHandler(org.ovirt.engine.ui.common.idhandler.ElementIdHandler) PopupWidgetConfig.simpleField(org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.simpleField) GWT(com.google.gwt.core.client.GWT) IntegerEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor) PopupWidgetConfig.hiddenField(org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField) ToStringEntityModelRenderer(org.ovirt.engine.ui.common.widget.editor.generic.ToStringEntityModelRenderer) IntegerEntityModelTextBoxEditor(org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor) ToStringEntityModelRenderer(org.ovirt.engine.ui.common.widget.editor.generic.ToStringEntityModelRenderer)

Aggregations

GWT (com.google.gwt.core.client.GWT)2 ElementIdHandler (org.ovirt.engine.ui.common.idhandler.ElementIdHandler)2 EntityModelTextBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.EntityModelTextBoxEditor)2 IntegerEntityModelTextBoxEditor (org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor)2 ToStringEntityModelRenderer (org.ovirt.engine.ui.common.widget.editor.generic.ToStringEntityModelRenderer)2 PopupWidgetConfig.hiddenField (org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.hiddenField)2 PopupWidgetConfig.simpleField (org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfig.simpleField)2 PopupWidgetConfigMap (org.ovirt.engine.ui.common.widget.uicommon.popup.vm.PopupWidgetConfigMap)2 UnitVmModel (org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel)2 AbstractVmPopupWidget (org.ovirt.engine.ui.common.widget.uicommon.popup.AbstractVmPopupWidget)1