public class UIGenericChart extends com.vaadin.addon.charts.Chart implements UIComponentWithHints2
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Field and Description |
|---|---|
protected UIComponentData |
componentData
Component data used by this component
|
| Constructor and Description |
|---|
UIGenericChart(UIComponentData componentData)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyHint(String hintName,
Variant<Object> newValue,
Variant<Object> oldValue)
Applies the given hint to this component.
|
protected void |
clearPayloads() |
protected boolean |
configure(com.vaadin.addon.charts.model.Configuration configuration)
Configure chart options.
|
UIComponentData |
getComponentData()
Returns the component definition (LSPS RecordHolder instance which is
subtype of "ui::Component") associated with this Vaadin component.
|
Object |
getPayloadFor(com.vaadin.addon.charts.model.DataSeriesItem item) |
com.vaadin.ui.AbstractComponent |
getWidget()
Returns the Vaadin widget which implements the UI part of this component.
|
void |
refresh()
This method is called from LSPS rendering engine.
|
protected void |
setPayloadFor(com.vaadin.addon.charts.model.DataSeriesItem item,
Object payload) |
String |
toString() |
boolean |
unapplyHint(String hintName,
Variant<Object> oldValue)
The hint has been removed from the hint map.
|
protected void |
updateAxis(com.vaadin.addon.charts.model.Axis axis,
Variant.RecordVariant axisDefinition)
Updates the chart axis with the values from the axis definition.
|
addChartClickListener, addChartDrillupListener, addChartSelectionListener, addCheckBoxClickListener, addLegendItemClickListener, addPointClickListener, addPointSelectListener, addPointUnselectListener, addSeriesHideListener, addSeriesShowListener, addXAxesExtremesChangeListener, addYAxesExtremesChangeListener, beforeClientResponse, drawChart, drawChart, drawChart, getConfiguration, getDrilldownCallback, getJsonConfig, getState, isTimeline, readDesign, removeChartClickListener, removeChartDrillupListener, removeChartSelectionListener, removeCheckBoxClickListener, removeLegendItemClickListener, removePointClickListener, removePointSelectListener, removePointUnselectListener, removeSeriesHideListener, removeSeriesShowListener, removeXAxesExtremesChangeListener, removeYAxesExtremesChangeListener, setConfiguration, setDrilldownCallback, setJsonConfig, setSeriesVisibilityTogglingDisabled, setTimeline, writeDesignaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected final UIComponentData componentData
public UIGenericChart(UIComponentData componentData)
componentData - public void refresh()
UIComponentUIComponentData.getHints().refresh in interface UIComponentprotected boolean configure(com.vaadin.addon.charts.model.Configuration configuration)
refresh(). If this function returns true, the
chart is redrawn.configuration - protected void updateAxis(com.vaadin.addon.charts.model.Axis axis,
Variant.RecordVariant axisDefinition)
axis - axisDefinition - public boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2applyHint in interface UIComponentWithHints2hintName - the hint name, not null.newValue - variant containing the new hint value, never null, may contain null value.oldValue - variant containing the previous hint value, never null, may contain null value if the hint was missing or the old value was null.public boolean unapplyHint(String hintName, Variant<Object> oldValue)
UIComponentWithHints2unapplyHint in interface UIComponentWithHints2hintName - the the hint name, not null.oldValue - variant containing the previous hint value, never null, may contain null value if the old value was null.public UIComponentData getComponentData()
UIComponentgetComponentData in interface UIComponentprotected final void clearPayloads()
public Object getPayloadFor(com.vaadin.addon.charts.model.DataSeriesItem item)
protected final void setPayloadFor(com.vaadin.addon.charts.model.DataSeriesItem item,
Object payload)
public com.vaadin.ui.AbstractComponent getWidget()
UIComponentgetWidget in interface UIComponentCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.