|
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 |
|
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 #525317 is a reply to message #524718] |
Tue, 06 April 2010 08:07 |
|
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?
>
>
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04155 seconds