Board index » jbuilder » Any detail difference among "revalidate" "repaint" and "validate"?
Any detail difference among "revalidate" "repaint" and "validate"?
2003-10-26 11:46:23 AM
I want to know where I can get detail info about
when and where to use "revalidate" "repaint" and "validate"?
In current my code, I use one rather the other just by trying.
I really want to get some underlying info for these.
=======I got some from web but it isn't enough ==============
Note that the last three functions may affect a row height and
call revalidate() at the end. It took me a while to figure out the
difference between validate(), invalidate() and revalidate().
Here's my understanding of them so far. invalidate() marks a
component and it's parent (and parent's parent) as dirty. It
doesn't actually update the screen. revalidate() simply queues
an invalidate() for a later time and get activated once all the
events in the queue have been handled. Good thing about revalidate()
is that you can call it multiple times and the invalidate() call placed
in the queue causes any prior invalidate() in the queue to be removed so
the component gets invalidated only once for a series of changes.
is really what updates everything and makes them valid. It is most often
for a container object which in turn validates all the contained