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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChartLocaleHelperprotected CurrentAuthenticationprotected FormatStringsRegistryprotected Messagesprotected MessageToolsFields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZEFields inherited from interface io.jmix.charts.component.CustomChart
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ChartSerializerprotected JmixAmchartsSceneprotected voidvoidrepaint()Resend all items and properties to client and repaint chart.voidsetChartLocaleHelper(ChartLocaleHelper chartLocaleHelper) voidsetConfiguration(AbstractChart configuration) voidsetCurrentAuthentication(CurrentAuthentication currentAuthentication) voidsetFormatStringsRegistry(FormatStringsRegistry formatStringsRegistry) voidsetMessages(Messages messages) voidsetMessageTools(MessageTools messageTools) voidsetNativeJson(String json) Set additional JSON configuration as a string.protected voidsetupChartLocale(AbstractChart chart) protected voidsetupDefaults(AbstractChart chart) protected voidprotected voidMethods 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, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods 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:
getConfigurationin interfaceCustomChart
-
setConfiguration
- Specified by:
setConfigurationin interfaceCustomChart
-
repaint
public void repaint()Description copied from interface:CustomChartResend all items and properties to client and repaint chart. Use this method if you change some property of already displayed chart.- Specified by:
repaintin interfaceCustomChart
-
getNativeJson
- Specified by:
getNativeJsonin interfaceCustomChart- Returns:
- additional JSON configuration as a string.
-
setNativeJson
Description copied from interface:CustomChartSet additional JSON configuration as a string. This JSON can override configuration loaded from XML and from Component API.- Specified by:
setNativeJsonin interfaceCustomChart- Parameters:
json- additional JSON configuration
-
initLocale
protected void initLocale() -
setupDefaults
-
setupChartLocale
-
setupRectangularChartDefaults
-
setupSerialChartDefaults
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-