You could probably extend the default editor and override beginEdit() to create 
a copy of the item. Then in endEdit() you could perform an equality check on 
the previous and current versions of the item to see if the data actually 
changed.

But that seems like overkill. Is there any reason you can't simply rely on the 
update event?

On Sep 30, 2011, at 3:40 AM, prophe wrote:

> if the user presses Escape  - the editor won't call update() it's true. But
> when click outside of editor  the editor will call update() this is code of
> editor:
> 
>        @Override
>        public boolean mouseDown(Container container, Mouse.Button button,
> int x, int y) {
>            Display display = (Display)container;
>            Window window = (Window)display.getComponentAt(x, y);
> 
>            boolean consumed;
>            if (window != TableViewRowEditor.this
>                && (window == null || !isOwner(window))) {
>                endEdit(true);
>                consumed = (getEditEffect() != null);
>            } else {
>                consumed = false;
>            }
> 
>            return consumed;
>        }
> 
> -----
> Thank you!
> --
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/rowUpdated-event-tp3378807p3381693.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to