BeanCustomizer with explicit property change event?

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

BeanCustomizer with explicit property change event?

Postby rkarn » Wed Nov 14, 2007 6:10 am

Hi,

by confirming a bean customizer the WindowBuilder generates source code for all property changes of a customized bean, regardless if there was a custom PropertyChangeEvent fired for these changes.

It seems the WindowBuilder compares the bean that was given through the setObject method of the customizer with the final customized bean after the customizer was confirmed. Then source code gets generated for all differences.

This is not always the expected result since some of the bean property changes could happen indirectly. Therefore some GUI builders, like VE supports something like a explicit-property-change flag that could be applied through the BeanInfo class. Then the customizer has to fire explicit PropertyChangeEvent when source code generation is expected.

Does the swing WindowBuilder supports something similar?

Thank you,

Richard
rkarn
 
Posts: 1
Joined: Mon Nov 12, 2007 6:17 am

Postby Konstantin.Scheglov » Wed Nov 14, 2007 9:44 am

Can you send to support small example of such component/customizer?
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Postby Eric Clayberg » Thu Nov 15, 2007 8:46 pm

It sounds like the VE is doing something proprietary, so we need to see an actual example, if we are to implement the same thing.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest