[Engine-devel] GUI widget for adding/removing entries

Malini Rao mrao at redhat.com
Wed Oct 9 15:36:39 UTC 2013


I think a few interaction details listed along with the widget will be useful for anyone considering the use of this widget. For example, if the user cannot delete the last field remaining, then the minus will be disabled. Also, if the use case needs the user to be able to insert in any place in the list ( assuming that sequence is important), then building on the current model, the plus button will show on all rows etc.

Thanks
Malini

----- Original Message -----
From: "Lior Vernia" <lvernia at redhat.com>
To: "Einav Cohen" <ecohen at redhat.com>
Cc: "engine-devel" <engine-devel at ovirt.org>
Sent: Wednesday, October 9, 2013 8:32:09 AM
Subject: Re: [Engine-devel] GUI widget for adding/removing entries

Of course, my bad. Attached is a screenshot of the add/edit VM dialog,
note the vNIC part on the bottom half of the dialog.

On 09/10/13 13:24, Einav Cohen wrote:
> Hi Lior - can you please provide a screen-shot, so we will know which widget 
> you are referring to?
> will make it easier for people to decide if and where to use this widget.
> 
> Many thanks!
> 
> ----
> Regards,
> Einav
> 
> ----- Original Message -----
>> From: "Lior Vernia" <lvernia at redhat.com>
>> To: "engine-devel" <engine-devel at ovirt.org>
>> Sent: Wednesday, October 9, 2013 4:34:29 AM
>> Subject: [Engine-devel] GUI widget for adding/removing entries
>>
>> Hello,
>>
>> Lately a patch has been merged that introduces a widget for
>> adding/removing entries (e.g. network interfaces when creating/editing a
>> VM):
>>
>> http://gerrit.ovirt.org/#/c/19530/
>>
>> This kind of widgets is becoming common in oVirt, so the idea is to make
>> adding one easy rather than copying & pasting code. AddRemoveRowWidget
>> takes care of the plus/minus button logic, disabling an entry that
>> hasn't been edited, and the arranging in rows.
>>
>> In order to use it, one is required to override a couple of abstract
>> methods that are dependent upon the specific entry implementation. An
>> example may be found in ProfilesInstanceTypeEditor, which handles
>> adding/removing network interfaces in the new/edit VM dialog.
>>
>> Yours, Lior.
>> _______________________________________________
>> Engine-devel mailing list
>> Engine-devel at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/engine-devel
>>

_______________________________________________
Engine-devel mailing list
Engine-devel at ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel



More information about the Devel mailing list