pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: TextInput and Validator issues
Date Mon, 07 Mar 2011 21:23:23 GMT
See my other recent post - try overriding endEdit() instead.

On Mar 7, 2011, at 4:15 PM, lello wrote:

> Sorry, I always forget to reference the post.
> I added the close method, and now I check for a valid text however if the
> text is not valid, and I click on the table, super.close() is not called and
> I have the following error:
> 
> Exception thrown during paint(): java.lang.NullPointerException
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>        at
> org.apache.pivot.wtk.content.TableViewRowEditor$RowImage.paint(TableViewRowEditor.java:67)
> 
> 
> 
> Greg Brown-2 wrote:
>> 
>> Right - your custom row editor needs to override close() and make sure
>> that the data is valid. If you call super.close(), it will call store().
>> 
>> On Mar 7, 2011, at 3:44 PM, lello wrote:
>> 
>>> Ok, the editor itself does not override mouseDown(), but, as I said I can
>>> add
>>> a ContainerMouseButtonListener,
>>> to it, however the problem is not the editor but the table. If I am
>>> editing
>>> a row and click outside the editor with the mouse, store() is called
>>> whether
>>> or not the row object is valid or not.
>>> 
>>> --
>>> View this message in context:
>>> http://apache-pivot-users.399431.n3.nabble.com/TextInput-and-Validator-issues-tp2641141p2647837.html
>>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>> 
> 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/TextInput-and-Validator-issues-tp2641141p2647979.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message