Task #8317 (closed)
"selection_changed" listeners
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | atarkowska, cxallan |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2012-03-27 (11) |
Description
Since we have a number of places that can change the selection of the current object:
- jsTree selection
- Plate well selection
- Plate index change
- basket object selection
- history object selection
- search object selection
- share edited (and refreshed)
and we want center and right plugins to be isolated from the source of selection changes...
These events should 'trigger' a "selection_changed.ome" event on some object E.g.
$("body").trigger("selection_changed.ome");
Also, this object should keep track of the current selection, so that it can be queried without the selection changing (same as jsTree).
E.g. a list of 'objects' with attributes, "id" etc.
$("body").data( [ {"id":"plate-123", "index":0} ] );
Change History (3)
comment:1 Changed 12 years ago by wmoore
- Status changed from new to accepted
comment:2 Changed 12 years ago by wmoore
- Remaining Time changed from 1 to 0
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 12 years ago by Will Moore <will@…>
(In [6c39252114ab12c9328997c6c47f50dc5279a7f8/ome.git] on branch develop) 'selection_changed' listeners. See #8317
All events that require a different object 'selected' to be displayed in right tabs
trigger a selection_changed.ome event on to .
All plugins are listeners to these events.
History and Search pages have right-hand tab plugins: These tabs are now
part of the common parent template, and inherited by public, containers.html etc.
Well selection requires that acquisition and preview tabs can handle /well/w_id and
not just image_id.
Field change uses similar strategy to pagination - saving the index on the jsTree node
and refreshing display.
Bulk of the work in this commit. https://github.com/will-moore/openmicroscopy/commit/ac921ebe4c8a4828be8293f5cfeb7d219b5bece7
Some tidying up afterwards in 7339_tabs branch.
Closing.