com.github.highcharts4gwt.model.highcharts.option.jso.seriesscatter.JsoStates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of highcharts Show documentation
Show all versions of highcharts Show documentation
GWT wrapper for highcharts library.
package com.github.highcharts4gwt.model.highcharts.option.jso.seriesscatter;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.States;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.states.Hover;
import com.google.gwt.core.client.JavaScriptObject;
/**
* A wrapper object for all the series options in specific states.
*
*/
public class JsoStates
extends JavaScriptObject
implements States
{
protected JsoStates() {
}
public final native Hover hover()
throws RuntimeException /*-{
return this["hover"] = (this["hover"] || {});
}-*/
;
public final native JsoStates hover(Hover hover)
throws RuntimeException /*-{
this["hover"] = hover;
return this;
}-*/
;
public final native String getFieldAsJsonObject(String fieldName)
throws RuntimeException /*-{
this[fieldName] = (this[fieldName] || {});
return JSON.stringify(this[fieldName]);
}-*/
;
public final native JsoStates setFieldAsJsonObject(String fieldName, String fieldValueAsJsonObject)
throws RuntimeException /*-{
this[fieldName] = JSON.parse(fieldValueAsJsonObject);
return this;
}-*/
;
public final native String getFunctionAsString(String fieldName)
throws RuntimeException /*-{
this[fieldName] = (this[fieldName] || {});
return JSON.stringify(this[fieldName]);
}-*/
;
public final native JsoStates setFunctionAsString(String fieldName, String functionAsString)
throws RuntimeException /*-{
this[fieldName] = eval('(' + functionAsString + ')');
return this;
}-*/
;
}