Skip to main content



      Home
Home » Eclipse Projects » GEF » IFigure.validate(), invalidate(), revalidate(), setValid()
IFigure.validate(), invalidate(), revalidate(), setValid() [message #160624] Mon, 06 December 2004 13:54 Go to next message
Eclipse UserFriend
Hi all,

While the javadoc is extremely helpful in explaining these methods (e.g.
"validate() - validates the figure"), I'm still totally perplexed as to what
they do, why they do it and when they are/should be called from GEF. Can
someone explain the inner workings of these things?

The problem I'm encountering is that the child figure visuals are not being
updated when I add a child editpart to a container editpart, but the child
visuals *are* updated as soon as I select one of the other child figures on
the diagram.

Thanks!

Bob
Re: IFigure.validate(), invalidate(), revalidate(), setValid() [message #160653 is a reply to message #160624] Mon, 06 December 2004 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The invalidate/validate/revalidate methods were borrowed from Swing. They
work the same as they do for a JComponent.

"Bob Brodt" <rbrodt@adelphia.net> wrote in message
news:cp29ti$jan$1@www.eclipse.org...
> Hi all,
>
> While the javadoc is extremely helpful in explaining these methods (e.g.
> "validate() - validates the figure"), I'm still totally perplexed as to
what
> they do, why they do it and when they are/should be called from GEF. Can
> someone explain the inner workings of these things?
>
> The problem I'm encountering is that the child figure visuals are not
being
> updated when I add a child editpart to a container editpart, but the child
> visuals *are* updated as soon as I select one of the other child figures
on
> the diagram.
>
> Thanks!
>
> Bob
>
>
Re: IFigure.validate(), invalidate(), revalidate(), setValid() [message #160661 is a reply to message #160624] Mon, 06 December 2004 15:06 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Note that none of these methods causes repainting directly. When the parent
moves the figure, it should get repainted in its new location. But often it
is correct to call revalidate() and repaint(). See Label.setText for an
example.

"Bob Brodt" <rbrodt@adelphia.net> wrote in message
news:cp29ti$jan$1@www.eclipse.org...
> Hi all,
>
> While the javadoc is extremely helpful in explaining these methods (e.g.
> "validate() - validates the figure"), I'm still totally perplexed as to
what
> they do, why they do it and when they are/should be called from GEF. Can
> someone explain the inner workings of these things?
>
> The problem I'm encountering is that the child figure visuals are not
being
> updated when I add a child editpart to a container editpart, but the child
> visuals *are* updated as soon as I select one of the other child figures
on
> the diagram.
>
> Thanks!
>
> Bob
>
>
Previous Topic:EditDomain
Next Topic:draw2D - editable text-boxes
Goto Forum:
  


Current Time: Sat Jul 19 11:38:41 EDT 2025

Powered by FUDForum. Page generated in 0.03286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top