change the figure image at runtime [message #160280] |
Fri, 03 December 2004 06:54 |
Eclipse User |
|
|
|
Originally posted by: jsk_lam.hotmail.com
Hi,
I have a Panel host an image and some texts. I would like to change the
displayed image
programmatically based on some state. Can someone please help on this?
Thanks.
slam
|
|
|
Re: change the figure image at runtime [message #160352 is a reply to message #160280] |
Fri, 03 December 2004 15:31 |
Eclipse User |
|
|
|
Originally posted by: gaslade.yahoo.com
So firstly you would have to be aware of the state change that effects
the visual.... i.e your model object would be listening to something.
When the state change happens your model object would respond in some
way, for example, setting it's active image to some new image reflecting
the state change, then it would in turn fire an event that its edit part
would be listening for.
The edit part would respond to this event by calling refreshVisuals() on
itself. Part of refreshVisuals() would be to ask the model object for
the image to display.
Guy
slam wrote:
> Hi,
>
> I have a Panel host an image and some texts. I would like to change the
> displayed image
> programmatically based on some state. Can someone please help on this?
> Thanks.
>
> slam
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02670 seconds