use of org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor in project ovirt-engine by oVirt.
the class AbstractVmPopupWidget method initTextBoxEditors.
private void initTextBoxEditors() {
templateVersionNameEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
vmIdEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
descriptionEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
commentEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
numOfVmsEditor = new IntegerEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
cpuPinning = new StringEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
cpuSharesAmountEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
kernel_pathEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
initrd_pathEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
kernel_parametersEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
nameEditor = new StringEntityModelTextBoxEditor(new ModeSwitchingVisibilityRenderer());
nameEditor.hideLabel();
prestartedVmsEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
editPrestartedVmsEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
maxAssignedVmsPerUserEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
editMaxAssignedVmsPerUserEditor = new IntegerEntityModelTextBoxOnlyEditor(new ModeSwitchingVisibilityRenderer());
}
use of org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor 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();
});
}
use of org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor 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();
});
}
use of org.ovirt.engine.ui.common.widget.editor.generic.IntegerEntityModelTextBoxEditor in project ovirt-engine by oVirt.
the class AbstractVmPopupWidget method createNumOfDesktopEditors.
/**
* There are two editors which edits the same entity - in the correct subclass make sure that the correct one's
* value is used to edit the model
* <p>
* The default implementation just creates the simple editors
*/
protected void createNumOfDesktopEditors() {
increaseNumOfVmsEditor = new IntegerEntityModelTextBoxEditor();
numOfVmsEditor = new IntegerEntityModelTextBoxEditor();
}
Aggregations