Re: Roassal & Spec?
Posted by
MartinW on
Jun 01, 2013; 6:52pm
URL: https://forum.world.st/Roassal-Spec-tp4690745p4691206.html
MartinW wrote
In my case the upper two panes would display the same object, only with different views on it (a graph and a list), and the selections would be syncronized (select an element in the graph - the same element will be selected in the list and vice versa). Is this as easily possible?
Would this be the direction:
|collection composer|
collection := OrderedCollection new.
collection add: #A; add: #B; add: #C; add: #D.
composer := GLMCompositePresentation new.
composer tabulator with: [ :t |
t row: #visualization; row: #details.
t transmit to: #visualization; andShow: [ :a |
a stackedArrangement.
a roassal
title: 'Visualization';
painting: [ :view :viewCollection |
view shape rectangle size: 30.
view nodes: viewCollection.
view shape arrowedLine.
view
edges: ((OrderedCollection new) add: (#A->#B); add: (#A->#C); add: (#C->#D); yourself)
from: #key
to: #value.
view treeLayout ].
a list
title: 'List'.].
t transmit from: #visualization; to: #details; andShow: [ :a |
a text
title: 'Details';
display: [ :number | number asString ]] ].
composer openOn: collection