You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Mark Wardell <ma...@knoxroad.net> on 2011/02/16 10:30:36 UTC

RowEditor listeners

Hi, I am trying to listen to a TableView RowEditor so that I can execute a
certain code path when the editor ends successfully but cannot see any way
to do this in 2.0. I can see RowEditorListeners in 1.5 but they appear to
have been removed.

I do not want to listen to the TV rowUpdated event as I want to
differentiate between manual edits and programmatic updates.

Is there any way of doing this?

Thanks
Mark

Re: RowEditor listeners

Posted by Chris Bartlett <cb...@gmail.com>.
Mark,

Here are a links to a couple of mailing discussions relating to changes to
RowEditor for v2.0.
http://apache-pivot-developers.417237.n3.nabble.com/Editor-transitions-tp1998988p1998988.html
http://apache-pivot-users.399431.n3.nabble.com/RowEditor-and-db-tp1694313p1694313.html

I think this explains how to get the hook you need to determine that a
manual edit has ended. ( WindowStateListener#windowClosed(Window, Display,
Window) )
http://apache-pivot-users.399431.n3.nabble.com/RowEditor-and-db-tp1694313p1703494.html
Some code from SVN
http://svn.apache.org/repos/asf/pivot/trunk/tests/src/org/apache/pivot/tests/TableViewTest2.java

Chris

On 16 February 2011 16:30, Mark Wardell <ma...@knoxroad.net> wrote:

> Hi, I am trying to listen to a TableView RowEditor so that I can execute a
> certain code path when the editor ends successfully but cannot see any way
> to do this in 2.0. I can see RowEditorListeners in 1.5 but they appear to
> have been removed.
>
> I do not want to listen to the TV rowUpdated event as I want to
> differentiate between manual edits and programmatic updates.
>
> Is there any way of doing this?
>
> Thanks
> Mark
>