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

com.openfin.desktop.platform.ApiOptions Maven / Gradle / Ivy

There is a newer version: 11.0.2
Show newest version
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;
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy