Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » Event when a form becomes visible
Event when a form becomes visible [message #23939] Sat, 13 December 2008 11:18 Go to next message
Eclipse UserFriend
Originally posted by: news.s237965939.online.de

I there an event which is fired everytime when a form becomes visible?
And which I can catch from inside the form. When the user switches away
from a form in my app, and later switches back, parameters may have
changed in the meantime so the form has to be reinitialized.

TIA,
Hans
Re: Event when a form becomes visible [message #23980 is a reply to message #23939] Sat, 13 December 2008 23:29 Go to previous messageGo to next message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hello Hans,

Unfortunately there are no callback methods for the events you described.
You would have to implement it yourself. Take a look at the Displayable
isShown() method, maybe it can help you.

[],

David Marques
Re: Event when a form becomes visible [message #24016 is a reply to message #23980] Mon, 15 December 2008 07:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.s237965939.online.de

David Marques schrieb:
> Hello Hans,
>
> Unfortunately there are no callback methods for the events you
> described. You would have to implement it yourself. Take a look at the
> Displayable isShown() method, maybe it can help you.

Thanks David, so i have to roll my own. Btw, I asked the wrong question.
It's all about a canvas, not a form as I wrote but I guess that doesn't
change much, right?

Hans
Re: Event when a form becomes visible [message #24049 is a reply to message #24016] Mon, 15 December 2008 12:44 Go to previous messageGo to next message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hello Hans,

Fortunately the Canvas class has the following methods that can help you.

protected void showNotify();
protected void hideNotify();

I hope it works for you.

Best Regards,

David Marques
Re: Event when a form becomes visible [message #24077 is a reply to message #24049] Mon, 15 December 2008 18:11 Go to previous message
Eclipse UserFriend
Originally posted by: news.s237965939.online.de

David Marques schrieb:
> Hello Hans,
>
> Fortunately the Canvas class has the following methods that can help you.
>
> protected void showNotify();
> protected void hideNotify();

Oh, that's good to know. Thanks again, David

Hans
Re: Event when a form becomes visible [message #569103 is a reply to message #23939] Sat, 13 December 2008 23:29 Go to previous message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hello Hans,

Unfortunately there are no callback methods for the events you described.
You would have to implement it yourself. Take a look at the Displayable
isShown() method, maybe it can help you.

[],

David Marques
Re: Event when a form becomes visible [message #569149 is a reply to message #23980] Mon, 15 December 2008 07:53 Go to previous message
Eclipse UserFriend
Originally posted by: news.s237965939.online.de

David Marques schrieb:
> Hello Hans,
>
> Unfortunately there are no callback methods for the events you
> described. You would have to implement it yourself. Take a look at the
> Displayable isShown() method, maybe it can help you.

Thanks David, so i have to roll my own. Btw, I asked the wrong question.
It's all about a canvas, not a form as I wrote but I guess that doesn't
change much, right?

Hans
Re: Event when a form becomes visible [message #569177 is a reply to message #24016] Mon, 15 December 2008 12:44 Go to previous message
David Marques is currently offline David MarquesFriend
Messages: 80
Registered: July 2009
Member
Hello Hans,

Fortunately the Canvas class has the following methods that can help you.

protected void showNotify();
protected void hideNotify();

I hope it works for you.

Best Regards,

David Marques
Re: Event when a form becomes visible [message #569202 is a reply to message #24049] Mon, 15 December 2008 18:11 Go to previous message
Eclipse UserFriend
Originally posted by: news.s237965939.online.de

David Marques schrieb:
> Hello Hans,
>
> Fortunately the Canvas class has the following methods that can help you.
>
> protected void showNotify();
> protected void hideNotify();

Oh, that's good to know. Thanks again, David

Hans
Previous Topic:Event when a form becomes visible
Next Topic:MTJ 0.9.1 RC2 now available for download
Goto Forum:
  


Current Time: Wed Apr 24 14:04:35 GMT 2024

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

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

Back to the top