Class TableEditFragment
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<C>
io.jmix.reportsflowui.view.template.AbstractDescriptionEditFragment<TableEditFragmentContent>
io.jmix.reportsflowui.view.template.TableEditFragment
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,Serializable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class TableEditFragment
extends AbstractDescriptionEditFragment<TableEditFragmentContent>
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Actions
protected org.springframework.context.ApplicationContext
protected TableEditFragmentContent
protected DataComponents
static final int
protected Messages
protected Metadata
protected Notifications
protected CollectionPropertyContainer<TemplateTableBand>
protected CollectionPropertyContainer<TemplateTableColumn>
protected InstanceContainer<TemplateTableDescription>
protected UiComponents
static final int
Fields inherited from class io.jmix.reportsflowui.view.template.AbstractDescriptionEditFragment
previewBox, reportTemplate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
protected void
protected boolean
protected boolean
protected void
changeOrderBandsOfIndexes
(int order) protected boolean
protected boolean
protected boolean
protected TableEditFragmentContent
protected TemplateTableDescription
protected void
protected void
protected void
protected TableEditFragmentContent
protected void
initPreviewContent
(com.vaadin.flow.component.orderedlayout.VerticalLayout previewBox) boolean
isApplicable
(ReportOutputType reportOutputType) boolean
protected void
protected void
onBandDataGridSelection
(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<TemplateTableBand>, TemplateTableBand> event) protected void
protected void
onBandRemoveAfterActionPerformed
(RemoveOperation.AfterActionPerformedEvent<TemplateTableBand> event) protected void
protected void
protected void
protected void
onColumnRemoveAfterActionPerformed
(RemoveOperation.AfterActionPerformedEvent<TemplateTableColumn> event) protected void
protected void
protected void
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setReportTemplate
(ReportTemplate reportTemplate) Methods inherited from class io.jmix.reportsflowui.view.template.AbstractDescriptionEditFragment
getPreviewBox, getReportTemplate, hidePreview, setPreviewBox, showPreview
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
UP
public static final int UP- See Also:
-
DOWN
public static final int DOWN- See Also:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
metadata
-
dataComponents
-
uiComponents
-
actions
-
notifications
-
messages
-
templateTableDescriptionDc
-
templateTableBandsDc
-
templateTableColumnsDc
-
-
-
Constructor Details
-
TableEditFragment
public TableEditFragment()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
autowireDependencies
protected void autowireDependencies() -
initComponent
protected void initComponent() -
createContent
-
initBands
protected void initBands() -
initColumns
protected void initColumns() -
onBandDataGridSelection
protected void onBandDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<TemplateTableBand>, TemplateTableBand> event) -
onBandCreateActionPerformed
-
onBandRemoveAfterActionPerformed
protected void onBandRemoveAfterActionPerformed(RemoveOperation.AfterActionPerformedEvent<TemplateTableBand> event) -
onBandUpActionPerformed
-
bandUpEnabledRule
protected boolean bandUpEnabledRule() -
onBandDownActionPerformed
-
bandDownEnabledRule
protected boolean bandDownEnabledRule() -
onColumnCreateActionPerformed
-
columnCreateEnabledRule
protected boolean columnCreateEnabledRule() -
onColumnRemoveAfterActionPerformed
protected void onColumnRemoveAfterActionPerformed(RemoveOperation.AfterActionPerformedEvent<TemplateTableColumn> event) -
onColumnUpActionPerformed
-
columnUpEnabledRule
protected boolean columnUpEnabledRule() -
onColumnDownActionPerformed
-
columnDownEnabledRule
protected boolean columnDownEnabledRule() -
setReportTemplate
- Overrides:
setReportTemplate
in classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
initContent
- Overrides:
initContent
in classcom.vaadin.flow.component.Composite<TableEditFragmentContent>
-
isSupportPreview
public boolean isSupportPreview()- Specified by:
isSupportPreview
in classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
isApplicable
- Specified by:
isApplicable
in classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
applyChanges
public boolean applyChanges()- Specified by:
applyChanges
in classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
initPreviewContent
protected void initPreviewContent(com.vaadin.flow.component.orderedlayout.VerticalLayout previewBox) - Specified by:
initPreviewContent
in classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
createDefaultTemplateTableDescription
-
changeOrderBandsOfIndexes
protected void changeOrderBandsOfIndexes(int order) -
refreshBandActionStates
protected void refreshBandActionStates() -
refreshColumnActionStates
protected void refreshColumnActionStates()
-