ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Abator - option for generating propert change event code
Date Sat, 04 Nov 2006 00:06:29 GMT
It would be pretty easy for you to implement this yourself.  You could write
a class that extends one of the JavaModelGenerator classes, and then
override the "generateClassParts" method - that method generates the
getters/setters.

Jeff Butler



On 11/3/06, Scott Warner <swarner@adcc.com> wrote:
>
>
> Can an option be added to the javaModelGenerator that will generate the
> code for property change events in the generated setters?
> For example:
>    public void setName(String name) {
>            String prev = getName();
>            pda.setName(name);
>            firePropertyChange("name", prev, name);
>     }
>
> and then also support for vetoeable property change events (I just
> thought of this)
>
> We are going to start using a binding framework so this will be
> extremely useful.
>
> Scott Warner
>
>

Mime
View raw message