package ol.source;

import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * 
 * @author Tino Desjardins
 *
 */
@JsType(isNative = true)
public interface ImageWMSParams {
    
    /**
     * 
     * @param layers comma seperated layernames
     */
    @JsProperty
    void setLayers(String layers);

    @JsProperty(name = "WIDTH")
    void setWidth(String width);

    @JsProperty(name = "HEIGHT")
    void setHeight(String height);
    
}


package ol.source;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * 
 * @author Tino Desjardins
 *
 */
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class ImageWMSParams {
    
    /**
     * 
     * @param layers comma seperated layernames
     */
    @JsProperty
    public native void setLayers(String layers);

    @JsProperty(name = "WIDTH")
    public native void setWidth(String width);

    @JsProperty(name = "HEIGHT")
    public native void setHeight(String height);
    
}


Convert ImageWMSParams interface to class