You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you so much for dragdroplayouts - it's really great!
One thing I feel is missing (this is an Improvement request/suggestion, not a bug report) is some kind of support for Position Change Event Notification...
Today, if one uses dragdroplayouts to write some sort of UI designer toolkit along the lines of what I've been experimenting with on http://blog2.vorburger.ch/2012/08/vaadin-emf-eclipse-data-binding.html, you have to us a DropHandler to know when things get moved. - In an ideal world, I'd like to be able to register a Listener that gets called on a position change event -- I'm sure you know what I mean?
I've be playing quite a bit with this myself this past week-end, and wanted to let you know about it - in case you're interested in picking this up for integration into dragdroplayouts?
Reported by michael.vorburger, Aug 20, 2012
First of all, thank you so much for dragdroplayouts - it's really great!
One thing I feel is missing (this is an Improvement request/suggestion, not a bug report) is some kind of support for Position Change Event Notification...
Today, if one uses dragdroplayouts to write some sort of UI designer toolkit along the lines of what I've been experimenting with on http://blog2.vorburger.ch/2012/08/vaadin-emf-eclipse-data-binding.html, you have to us a DropHandler to know when things get moved. - In an ideal world, I'd like to be able to register a Listener that gets called on a position change event -- I'm sure you know what I mean?
I've be playing quite a bit with this myself this past week-end, and wanted to let you know about it - in case you're interested in picking this up for integration into dragdroplayouts?
https://github.com/vorburger/MUI/blob/master/ch.vorburger.vaadin.designer/src/ch/vorburger/vaadin/beans/dragdroplayouts/DDAbsoluteLayoutWithBeanPositionChange.java is the solution I ultimately went for & am using. Basically, as you'll see in the code, I've created a small new dedicated ComponentPosition... wrapper class for left/top pos, which one passes to a new addComponent() variant. My ComponentPosition... is a JavaBean with change notification support. I realize this is not exactly "the Vaadin way".
https://github.com/vorburger/MUI/blob/master/ch.vorburger.vaadin.designer/src/ch/vorburger/vaadin/beans/dragdroplayouts/DDAbsoluteLayoutWithBeanPositionChangeImpossibleImplementation.java was an earlier attempt the design is quite similar to above, but here the ComponentPositionWithPropertyChangeNotifier extends ComponentPosition. However due to Vaadin Core limitation of not having been designed with ComponentPosition subclassing in mind, I don't think this approach is feasible without modifiying Vaadin Core.
https://github.com/vorburger/MUI/blob/master/ch.vorburger.vaadin.designer/src/ch/vorburger/vaadin/dragdroplayouts/event/DDAbsoluteLayoutWithPositionChange.java was again an alternative / first attempt, using Vaadin-style instead of JavaBean-style Event notification (on the Layout instead of new Position class), futile for similar reason as above.
(Issue moved from https://code.google.com/p/dragdroplayouts/issues/detail?id=11)
The text was updated successfully, but these errors were encountered: