Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Notification that click custom widget( run the J.S. file )to show information for a view (Notification that click custom widget( run the J.S. file )to show information for a view )
icon5.gif  Notification that click custom widget( run the J.S. file )to show information for a view [message #524201] Wed, 31 March 2010 07:14 Go to next message
zezhenyan  is currently offline zezhenyan Friend
Messages: 16
Registered: March 2010
Junior Member
hi,
everyone

I have created a custom widget, when I click my custom widget, I will run the J.S. file using the LAC class. Then I want to change the view( extends View Part), which is the normal view in the rap platform. Like the Properties view in the eclipse. I can change the label value of my view(extends View Part), but the value don't show in the IE. How to refresh the rap view?

Please give me some method about that. Thanks!

[Updated on: Thu, 01 April 2010 03:15]

Report message to a moderator

Re: Notification that click custom widget( run the J.S. file )to show information for a view [message #524512 is a reply to message #524201] Thu, 01 April 2010 08:15 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

I'm sorry but I can't understand what you are trying to do. Could you
try to explain the problem in more detail?

Ralf

zezhenyan wrote:
> hi,
> everyone
> I have created a custom widget, when I click my custom widget, I will
> run the J.S. file using the LAC class. Then I want to change the view(
> extends View Part), which is the normal view in the rap platform. Like
> the Properties view in the eclipse. I can change the label value of my
> view(extends View Part), but the value don't show in the IE. How to
> refresh the rap view?
>
> Please give me some method about that. Thanks!
Re: Notification that click custom widget( run the J.S. file )to show information for a view [message #524718 is a reply to message #524512] Fri, 02 April 2010 02:03 Go to previous messageGo to next message
zezhenyan  is currently offline zezhenyan Friend
Messages: 16
Registered: March 2010
Junior Member
hi,
Ralf

Thanks for you pay close attention to my question.
I want add a flex file in my rap view. Now I have finished it. Likes the Gmap demo. But I have a trouble.

When I click the view, which is coded by Java Scrip. I can change the value of the rap view in the Java Scrip code. for example "req.addParameter( gmapId + ".centerLocation", a );" then I want to change the value of the other view. for example:
" final GMap g = (GMap) View.viewMap.get(GMap.ID);
// g.addPropertyChangeListener(new PropertyChangeListener() {
//
// public void propertyChange(PropertyChangeEvent evt) {
// // TODO Auto-generated method stub
// label.setText(g.getCenterLocation());
// System.out.println(g.getCenterLocation()+"----------=========== ");
// }
// }g.CENLoca);"
the text of label changed, but it didn't show in the rap view. I think maybe some method can refresh the value of the rap widget or control.

like that "var req = org.eclipse.swt.Request.getInstance();
req.send();"
maybe other methods. I am not sure. Could you understand me?





Re: Notification that click custom widget( run the J.S. file )to show information for a view [message #525317 is a reply to message #524718] Tue, 06 April 2010 08:07 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

changes to widget properties that happen within a request life cycle are
immediately rendered, you don't need a refresh.

Is the label change a direct effect of a click in the custom widget by
the same user?

Do you see the changed label text after resizing the browser window? If
so, you probably change the label text in the background. In this case
you'd need a UICallback to "push" the changes to the client.

Hope this helps, Ralf

zezhenyan wrote:
> hi,
> Ralf
>
> Thanks for you pay close attention to my question.
> I want add a flex file in my rap view. Now I have finished it. Likes the
> Gmap demo. But I have a trouble.
> When I click the view, which is coded by Java Scrip. I can change the
> value of the rap view in the Java Scrip code. for example
> "req.addParameter( gmapId + ".centerLocation", a );" then I want to
> change the value of the other view. for example:
> " final GMap g = (GMap) View.viewMap.get(GMap.ID);
> // g.addPropertyChangeListener(new PropertyChangeListener() {
> //
> // public void propertyChange(PropertyChangeEvent evt) {
> // // TODO Auto-generated method stub
> // label.setText(g.getCenterLocation());
> //
> System.out.println(g.getCenterLocation()+"----------=========== ");
> // }
> // }g.CENLoca);"
> the text of label changed, but it didn't show in the rap view. I think
> maybe some method can refresh the value of the rap widget or control.
>
> like that "var req = org.eclipse.swt.Request.getInstance();
> req.send();"
> maybe other methods. I am not sure. Could you understand me?
>
>
>
>
>
>
Re: Notification that click custom widget( run the J.S. file )to show information for a view [message #525863 is a reply to message #525317] Thu, 08 April 2010 04:38 Go to previous message
zezhenyan  is currently offline zezhenyan Friend
Messages: 16
Registered: March 2010
Junior Member
Thanks, I will try it again.
Previous Topic:User workspace
Next Topic:How can refresh a widget while running java script.
Goto Forum:
  


Current Time: Tue Apr 16 17:44:57 GMT 2024

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

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

Back to the top