multiple selections question [message #135094] |
Mon, 31 May 2004 01:45 |
steven melzer Messages: 17 Registered: July 2009 |
Junior Member |
|
|
all,
i am curious how other people are handling this situation:
i have several SelectionActions that allow for selecting more than one
object. when the user selects multiple object, the SelectionAction
iterates through the selected objects and creates commands for each
object. it then executes the commands in a compound command.
this all works well, but i fire property events for each selected object
in its model, i.e.
public void setFoo(Object foo) {
this.foo = foo;
firePropertyEvent("FOO");
}
this means that the diagram is going to refreshChildren() on each selected
object. this may be a lot of unnecessary overhead, versus setting all the
models, and then calling refreshChildren once.
i am wondering how others are handling this situation.
thanks,
steve
|
|
|
Powered by
FUDForum. Page generated in 0.02966 seconds