Package io.jmix.charts.component.impl
Class CustomChartImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<JmixAmchartsScene>
io.jmix.charts.component.impl.CustomChartImpl
- All Implemented Interfaces:
CustomChart
,AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,org.springframework.beans.factory.InitializingBean
public class CustomChartImpl
extends AbstractComponent<JmixAmchartsScene>
implements CustomChart, org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChartLocaleHelper
protected CurrentAuthentication
protected FormatStringsRegistry
protected Messages
protected MessageTools
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.charts.component.CustomChart
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected ChartSerializer
protected JmixAmchartsScene
protected void
void
repaint()
Resend all items and properties to client and repaint chart.void
setChartLocaleHelper
(ChartLocaleHelper chartLocaleHelper) void
setConfiguration
(AbstractChart configuration) void
setCurrentAuthentication
(CurrentAuthentication currentAuthentication) void
setFormatStringsRegistry
(FormatStringsRegistry formatStringsRegistry) void
setMessages
(Messages messages) void
setMessageTools
(MessageTools messageTools) void
setNativeJson
(String json) Set additional JSON configuration as a string.protected void
setupChartLocale
(AbstractChart chart) protected void
setupDefaults
(AbstractChart chart) protected void
protected void
Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
-
Field Details
-
messages
-
messageTools
-
chartLocaleHelper
-
formatStringsRegistry
-
currentAuthentication
-
-
Constructor Details
-
CustomChartImpl
public CustomChartImpl()
-
-
Method Details
-
setMessages
-
setMessageTools
-
setCurrentAuthentication
-
setChartLocaleHelper
-
setFormatStringsRegistry
-
createComponent
-
createChartSerializer
-
getConfiguration
- Specified by:
getConfiguration
in interfaceCustomChart
-
setConfiguration
- Specified by:
setConfiguration
in interfaceCustomChart
-
repaint
public void repaint()Description copied from interface:CustomChart
Resend all items and properties to client and repaint chart. Use this method if you change some property of already displayed chart.- Specified by:
repaint
in interfaceCustomChart
-
getNativeJson
- Specified by:
getNativeJson
in interfaceCustomChart
- Returns:
- additional JSON configuration as a string.
-
setNativeJson
Description copied from interface:CustomChart
Set additional JSON configuration as a string. This JSON can override configuration loaded from XML and from Component API.- Specified by:
setNativeJson
in interfaceCustomChart
- Parameters:
json
- additional JSON configuration
-
initLocale
protected void initLocale() -
setupDefaults
-
setupChartLocale
-
setupRectangularChartDefaults
-
setupSerialChartDefaults
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-