public class CustomChartImpl extends AbstractComponent<JmixAmchartsScene> implements CustomChart, org.springframework.beans.factory.InitializingBean
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasContextHelp.ContextHelpIconClickEvent| Modifier and Type | Field and Description |
|---|---|
protected ChartLocaleHelper |
chartLocaleHelper |
protected io.jmix.core.security.CurrentAuthentication |
currentAuthentication |
protected io.jmix.core.metamodel.datatype.FormatStringsRegistry |
formatStringsRegistry |
protected io.jmix.core.Messages |
messages |
protected io.jmix.core.MessageTools |
messageTools |
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentNAMEAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
CustomChartImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected ChartSerializer |
createChartSerializer() |
protected JmixAmchartsScene |
createComponent() |
AbstractChart |
getConfiguration() |
java.lang.String |
getNativeJson() |
protected void |
initLocale() |
void |
repaint()
Resend all items and properties to client and repaint chart.
|
void |
setChartLocaleHelper(ChartLocaleHelper chartLocaleHelper) |
void |
setConfiguration(AbstractChart configuration) |
void |
setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication) |
void |
setFormatStringsRegistry(io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry) |
void |
setMessages(io.jmix.core.Messages messages) |
void |
setMessageTools(io.jmix.core.MessageTools messageTools) |
void |
setNativeJson(java.lang.String json)
Set additional JSON configuration as a string.
|
protected void |
setupChartLocale(AbstractChart chart) |
protected void |
setupDefaults(AbstractChart chart) |
protected void |
setupRectangularChartDefaults(RectangularChartModelImpl chart) |
protected void |
setupSerialChartDefaults(AbstractSerialChart chart) |
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, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFrame, setFrameaddStyleName, 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, withUnwrappedCompositiongetIcon, setIcon, setIconFromSetgetCaption, setCaptiongetDescription, setDescriptionprotected io.jmix.core.Messages messages
protected io.jmix.core.MessageTools messageTools
protected ChartLocaleHelper chartLocaleHelper
protected io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry
protected io.jmix.core.security.CurrentAuthentication currentAuthentication
@Autowired public void setMessages(io.jmix.core.Messages messages)
@Autowired public void setMessageTools(io.jmix.core.MessageTools messageTools)
@Autowired public void setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication)
@Autowired public void setChartLocaleHelper(ChartLocaleHelper chartLocaleHelper)
@Autowired public void setFormatStringsRegistry(io.jmix.core.metamodel.datatype.FormatStringsRegistry formatStringsRegistry)
protected JmixAmchartsScene createComponent()
protected ChartSerializer createChartSerializer()
public AbstractChart getConfiguration()
getConfiguration in interface CustomChartpublic void setConfiguration(AbstractChart configuration)
setConfiguration in interface CustomChartpublic void repaint()
CustomChartrepaint in interface CustomChartpublic java.lang.String getNativeJson()
getNativeJson in interface CustomChartpublic void setNativeJson(java.lang.String json)
CustomChartsetNativeJson in interface CustomChartjson - additional JSON configurationprotected void initLocale()
protected void setupDefaults(AbstractChart chart)
protected void setupChartLocale(AbstractChart chart)
protected void setupRectangularChartDefaults(RectangularChartModelImpl chart)
protected void setupSerialChartDefaults(AbstractSerialChart chart)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception