All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.FramePatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.dom.client.IFrameElement;
import com.google.gwt.user.client.ui.Frame;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;

@PatchClass(Frame.class)
class FramePatcher {

   @PatchMethod
   static String getUrl(Frame frame) {
      IFrameElement e = frame.getElement().cast();
      return e.getSrc();
   }

   @PatchMethod
   static void setUrl(Frame frame, String url) {
      IFrameElement e = frame.getElement().cast();
      e.setSrc(url);
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy