Class ChartEditFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.reportsui.screen.template.edit.DescriptionEditFragment
io.jmix.reportsui.screen.template.edit.ChartEditFragment
- All Implemented Interfaces:
FrameOwner
@UiController("report_ChartEdit.fragment")
@UiDescriptor("chart-edit-fragment.xml")
public class ChartEditFragment
extends DescriptionEditFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Actions
protected org.springframework.beans.factory.BeanFactory
protected DataManager
protected Dialogs
protected Fragments
protected Messages
protected Notifications
protected InstanceContainer<PieChartDescription>
protected Form
protected SourceCodeEditor
protected InstanceContainer<SerialChartDescription>
protected Form
protected SourceCodeEditor
protected CollectionContainer<ChartSeries>
protected GroupBoxLayout
protected Table<ChartSeries>
Fields inherited from class io.jmix.reportsui.screen.template.edit.DescriptionEditFragment
previewBox, reportTemplate
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
protected void
protected AbstractChartDescription
protected void
protected void
initPreviewContent
(BoxLayout previewBox) protected void
boolean
isApplicable
(ReportOutputType reportOutputType) boolean
protected void
protected void
onInit
(ScreenFragment.InitEvent event) protected void
onPieChartDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<PieChartDescription> event) protected void
protected void
onSerialChartDcItemPropertyChange
(InstanceContainer.ItemPropertyChangeEvent<SerialChartDescription> event) protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
setBands
(Collection<BandDefinition> bands) protected void
setChartDescription
(AbstractChartDescription chartDescription) void
setItem
(ReportTemplate reportTemplate) protected void
setPieChartComponentsVisible
(boolean visible) protected void
setSerialChartComponentsVisible
(boolean visible) protected void
protected boolean
Methods inherited from class io.jmix.reportsui.screen.template.edit.DescriptionEditFragment
getReportTemplate, hidePreview, setVisible, showPreview
Methods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
serialBandNameField
-
pieBandNameField
-
pieChartDc
-
serialChartDc
-
seriesDc
-
typeField
-
seriesTable
-
seriesGroupBox
-
pieChartForm
-
serialChartForm
-
serialJsonConfigEditor
-
pieJsonConfigEditor
-
beanFactory
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory -
messages
-
notifications
-
dialogs
-
actions
-
dataManager
-
fragments
-
-
Constructor Details
-
ChartEditFragment
public ChartEditFragment()
-
-
Method Details
-
onInit
- Overrides:
onInit
in classDescriptionEditFragment
-
onSeriesTableCreate
@Subscribe("seriesTable.create") protected void onSeriesTableCreate(Action.ActionPerformedEvent event) -
onSeriesDcCollectionChange
@Subscribe(id="seriesDc", target=DATA_CONTAINER) protected void onSeriesDcCollectionChange(CollectionContainer.CollectionChangeEvent<ChartSeries> event) -
onSeriesDcItemPropertyChange
@Subscribe(id="seriesDc", target=DATA_CONTAINER) protected void onSeriesDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<ChartSeries> event) -
onSerialChartDcItemPropertyChange
@Subscribe(id="serialChartDc", target=DATA_CONTAINER) protected void onSerialChartDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<SerialChartDescription> event) -
onPieChartDcItemPropertyChange
@Subscribe(id="pieChartDc", target=DATA_CONTAINER) protected void onPieChartDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<PieChartDescription> event) -
serialJsonConfigEditorContextHelpIconClickHandler
@Install(to="serialJsonConfigEditor", subject="contextHelpIconClickHandler") protected void serialJsonConfigEditorContextHelpIconClickHandler(HasContextHelp.ContextHelpIconClickEvent event) -
pieJsonConfigEditorContextHelpIconClickHandler
@Install(to="pieJsonConfigEditor", subject="contextHelpIconClickHandler") protected void pieJsonConfigEditorContextHelpIconClickHandler(HasContextHelp.ContextHelpIconClickEvent event) -
onSerialJsonConfigEditorValueChange
@Subscribe("serialJsonConfigEditor") protected void onSerialJsonConfigEditorValueChange(HasValue.ValueChangeEvent<String> event) -
onPieJsonConfigEditorValueChange
@Subscribe("pieJsonConfigEditor") protected void onPieJsonConfigEditorValueChange(HasValue.ValueChangeEvent<String> event) -
onTypeFieldValueChange
@Subscribe("typeField") protected void onTypeFieldValueChange(HasValue.ValueChangeEvent<ChartType> event) -
initPieChartFields
protected void initPieChartFields() -
initSerialChartFields
protected void initSerialChartFields() -
setPieChartComponentsVisible
protected void setPieChartComponentsVisible(boolean visible) -
setSerialChartComponentsVisible
protected void setSerialChartComponentsVisible(boolean visible) -
codeEditorChangeListener
-
jsonEditorContextHelpIconClickHandler
protected void jsonEditorContextHelpIconClickHandler(HasContextHelp.ContextHelpIconClickEvent event) -
setItem
- Overrides:
setItem
in classDescriptionEditFragment
-
applyChanges
public boolean applyChanges()- Specified by:
applyChanges
in classDescriptionEditFragment
-
isApplicable
- Specified by:
isApplicable
in classDescriptionEditFragment
-
isSupportPreview
public boolean isSupportPreview()- Specified by:
isSupportPreview
in classDescriptionEditFragment
-
validateChart
protected boolean validateChart() -
initPreviewContent
- Specified by:
initPreviewContent
in classDescriptionEditFragment
-
getChartDescription
-
setChartDescription
-
setBands
-
checkSeriesOrder
protected void checkSeriesOrder() -
sortSeriesByOrder
protected void sortSeriesByOrder()
-