com.github.highcharts4gwt.model.highcharts.option.jso.seriescolumnrange.JsoPoint 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.seriescolumnrange;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.Point;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointMouseOutHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointMouseOverHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointRemoveHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointSelectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointUnselectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointUpdateHandler;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Properties for each single point
*
*/
public class JsoPoint
extends JavaScriptObject
implements Point
{
protected JsoPoint() {
}
public final native void addPointClickHandler(PointClickHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
click: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointClickHandler::onPointClick(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointClickEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addPointMouseOutHandler(PointMouseOutHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
mouseOut: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointMouseOutHandler::onPointMouseOut(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointMouseOutEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addPointMouseOverHandler(PointMouseOverHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
mouseOver: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointMouseOverHandler::onPointMouseOver(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointMouseOverEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addPointRemoveHandler(PointRemoveHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
remove: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointRemoveHandler::onPointRemove(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointRemoveEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addPointSelectHandler(PointSelectHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
select: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointSelectHandler::onPointSelect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointSelectEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addPointUnselectHandler(PointUnselectHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
unselect: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointUnselectHandler::onPointUnselect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointUnselectEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addPointUpdateHandler(PointUpdateHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
update: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriescolumnrange.point.PointUpdateHandler::onPointUpdate(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriescolumnrange/point/PointUpdateEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native String getFieldAsJsonObject(String fieldName)
throws RuntimeException /*-{
this[fieldName] = (this[fieldName] || {});
return JSON.stringify(this[fieldName]);
}-*/
;
public final native JsoPoint 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 JsoPoint setFunctionAsString(String fieldName, String functionAsString)
throws RuntimeException /*-{
this[fieldName] = eval('(' + functionAsString + ')');
return this;
}-*/
;
}