Hi All,
Doru emitted a request on Mondrian. I added the class
MOFigureSelection to capture when a node is selected.
Example in:
MOViewRendererTest>>testFigureSelection
| view node1 announcer |
view := MOViewRenderer new.
view setUsefulHandlersForNodes.
announcer := view interaction.
view nodes: (1 to: 20).
node1 := view nodeForDomainValue: 1.
self deny: (node1 isSelected).
announcer announce: (MOFigureSelection event: nil on: node1).
self assert: (node1 isSelected).
Note that the message setUsefulHandlersForNodes should be sent to the
view. It is automatically sent within an easel. (maybe this is a point
we could discuss).
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.