com.openfin.desktop.platform.ApiOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openfin-desktop-java-adapter Show documentation
Show all versions of openfin-desktop-java-adapter Show documentation
The Java API for OpenFin Runtime
package com.openfin.desktop.platform;
import org.json.JSONObject;
import com.openfin.desktop.JsonBean;
public class ApiOptions extends JsonBean {
/*
export interface Api {
iframe?: {
crossOriginInjection?: boolean;
sameOriginInjection?: boolean;
};
}
*/
private IFrameOptions iFrameOptions;
public ApiOptions() {
}
public ApiOptions(JSONObject json) {
super(json);
}
public IFrameOptions getIFrameOptions() {
if (this.iFrameOptions == null && json.has("AutoResizeOptions")) {
this.iFrameOptions = new IFrameOptions(json.getJSONObject("AutoResizeOptions"));
}
return this.iFrameOptions;
}
public void setIFrameOptions(IFrameOptions options) {
this.iFrameOptions = options;
}
}