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.Listener
com.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, writeDesign
addContextClickListener, 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, setWidthUndefined
addAttachListener, 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, setResource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected final UIComponentData componentData
public UIGenericChart(UIComponentData componentData)
componentData
- public void refresh()
UIComponent
UIComponentData.getHints()
.refresh
in interface UIComponent
protected 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)
UIComponentWithHints2
applyHint
in interface UIComponentWithHints2
hintName
- 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)
UIComponentWithHints2
unapplyHint
in interface UIComponentWithHints2
hintName
- 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()
UIComponent
getComponentData
in interface UIComponent
protected 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()
UIComponent
getWidget
in interface UIComponent
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.