Even though you are creating a new FlowPanel and adding your 
propertiesEditor widget after passing it into the popup, it still doesn't 
matter because you are passing the panel as an Element in your 
openInfoWindowWidget 
method.

But to elaborate on the approach I mentioned, try this as an example:

public class YourPanel extends Composite {
JavaScriptObject clickFunction;

{
createJSNIBridge();
}

public YourPanel() {
Button button = new Button("Button");
button.getElement().setPropertyJSO("onclick", clickFunction);

FlowPanel panel = new FlowPanel();
panel.add(button);
initWidget(panel);
}

native void createJSNIBridge()/*-{
[email protected]::clickFunction = function() {
alert("Clicked!");
}
}-*/;
}

And then call openInfoWindowWidget(currentCoordinate, new YourPanel
().getElement()); 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/SzQF0VraJK0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to