Vojtech Szocs has submitted this change and it was merged.
Change subject: webadmin: UI plugins - SystemTreeSelectionChange
......................................................................
webadmin: UI plugins - SystemTreeSelectionChange
This patch adds 'SystemTreeSelectionChange' event
handler function that gets called whenever System
Tree node selection changes.
Example usage:
api.register({
SystemTreeSelectionChange: function(selectedItem) {
// Currently using SystemTreeItemType enum name
// e.g. 'System', 'DataCenters', 'DataCenter', etc.
alert(selectedItem.type);
// Defined if there is business entity associated
// e.g. for 'DataCenter' -> { id: '..', name:'..' }
// See EntityObject#from for details on mapping
alert(selectedItem.entity);
}
});
It also fixes some issues in JsArrayHelper and adds
JsMutableObjectWithProperties to deal with mutable
native JS objects within UI plugin infrastructure.
Change-Id: Ib01721c309912526f8d7f8252e94b44e0dbfd423
Bug-Url:
https://bugzilla.redhat.com/1066425
Signed-off-by: Vojtech Szocs <vszocs(a)redhat.com>
---
M
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/uicommon/model/TabModelProvider.java
M
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/PluginEventHandler.java
M
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
A
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/SystemTreeItemObject.java
M
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/jsni/JsArrayHelper.java
A
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/jsni/JsMutableObjectWithProperties.java
M
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/uicommon/model/SystemTreeModelProvider.java
7 files changed, 131 insertions(+), 32 deletions(-)
Approvals:
Tomas Jelinek: Looks good to me, approved
Vojtech Szocs: Verified
--
To view, visit
http://gerrit.ovirt.org/25186
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib01721c309912526f8d7f8252e94b44e0dbfd423
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen(a)redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayilsa(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: anmolbabu <anbabu(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server