Updates:
Cc: tudor.gi...(a)gmail.com usman.bh...(a)gmail.com guillaum...(a)gmail.com
Comment #2 on issue 808 by alexandr...(a)gmail.com: refresh a
GLMRoassalPresentation
http://code.google.com/p/moose-technology/issues/detail?id=808
Hi Guillaume and Usman,
The solution for that problem is easy. Check this:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| browser |
browser := GLMTabulator withStatusbar.
browser column: #one.
browser transmit to: #one; andShow: [ :a |
a roassal
title: 'Numbers in Roassal';
painting: [:view :number |
| b |
b := [ :startNumber |
view shape label.
view interaction
on: ROMouseClick do: [ :event |
ROFocusView new on: event element view: view raw ].
view nodes: (startNumber to: number).
view edgesFrom: [:each | each // 5 ].
view treeLayout.
view applyLayout ].
"Initial view"
b value: 1.
view addMenu: 'Refresh' callBack: [ :stack |
"We need to clean the view first, else all the nodes get accumulated"
view raw elementsDo: #remove.
b value: 3 .
(browser paneNamed: #one) update ].
]].
browser openOn: 42
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I am not sure this is a problem of Glamour. I feel Roassal is missing the
abstraction. The main problem is the following: you are using the Mondrian
DSL to build your view. However, Mondrian never supported any repaint
functionalities. So, trying to do a repaint in Mondrian is not nice.
Maybe a new DSL is needed for this.
Is the problem fixed?
Cheers,
Alexandre