userportal: fix memory leaks

- Fixed a memory leak in user portal extended tab
- Fixed a memory leak in user portal basic tab.

Change-Id: I6ebfd191f59b3ab9841b0cb11c110e50da336263
Signed-off-by: Alexander Wels <awels@redhat.com>
userportal: stop basic list provider on extended tab

- Modified how listener is attached
- Fix UserPortalConfigurator getSpiceFullScreen

Change-Id: I18e24cfcb5a477df3d3017b2f72409a37162ea64
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
userportal: Optimize basic view

1. Fixed VmPool.equals method

2. Added UserPortalItemModel.entityStateEqualTo method
   containing VM/Pool entity state comparison logic

3. Fixed related NPE in UserPortalListModel that
   occured when items == null, and added break statement
   to optimize selected item handling loop

4. UserPortalBasicListModel provider now includes
   original optimization logic:
   * on first data update, just proceed to refresh UI
   * on subsequent data update, proceed to refresh UI
     only if there's (any) change in items

5. VM/Pool list presenter widget includes additional
   optimization logic:
   * reuse item presenter widgets (avoid recreating
     item views) for existing items
   * properly unbind/remove item presenter widgets
     whose items are absent within new data

6. VM/Pool item presenter widget's setModel method
   and related code refactored to allowed repeated
   setModel invocations

Change-Id: I17b92858345de398dbc89d9141468ccea67963fe
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
userportal: Optimize extended view VM/Pool grid

This patch applies the original optimization logic to both
UserPortalListModel and UserPortalBasicListModel providers
via common base class (AbstractUserPortalListProvider).

This means VM/Pool grid in Extended view will be redrawn
only if there's (any) change in items.

Change-Id: I8bd8c3cb312f89125e8c0a0182f49fe74f9f02d1
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
userportal: Optimization fixes

1. Fixed a problem when Basic view item selection
   was not retained after subsequent data refresh

2. Fixed a problem when Basic view UI was redrawn
   even when there was no change in items

3. Removed duplicate code with regard to clearing
   UserPortalItemModel references by moving it to
   IUserPortalListModel (parent class)

4. Fixed issue where if nothing changed the buttons
   would become disabled.

5. Fixed issue where buttons in basic/extended tab
   were unresponsive.

Change-Id: I81b30a5e03d35862d92e6630aac71c70f7cd75de
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
userportal: fix memory leak when VM selected

- Fixed a slow memory leak when selecting a VM.

Change-Id: Ibea56e991d5d09051ab931cb1584d9c94f74ab42
Signed-off-by: Alexander Wels <awels@redhat.com>
userportal: Set default VM/Pool refresh rate to 30s for IE8

For IE8 and below, default refresh rate for VM/Pool entities
is set to 30 seconds.

This change applies to following parts of UI:
- Basic tab
- Extended tab [Virtual Machines grid]

Change-Id: Ibcaf85e0f6f38b522ccc282a0a76ef3016a220ea
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>
userportal: Fix UI update for Basic list item

Since MainTabBasicListItemPresenterWidget is bound as non-singleton,
the EditorDriver instance must not be static, but bound to the given
View instance.

Change-Id: I6ad79df01ae452397727b6481a9fbe68fa7bc677
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>