How do I add an IFrameElement inside a widget in GWT?

Is there a way to add an IFrameElement inside a widget? I have a PopUp with a FlowPanel that I would like to place an IFrame in there.

+3


source to share


1 answer


You can use the widget Frame

provided by GWT. GWT wraps IFrameElement

in a widget Frame

. You can use it like any other widget. Next, you can do all the manipulations for the IFrameElement

Frame widget. for example

FlowPanel fp = new FlowPanel();
Frame frame = new Frame("http://www.google.com/");
fp.add(frame);

      



You can read more about the frame wrapper here: http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/Frame.html

+3


source







All Articles