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
FieldsModifier and TypeFieldDescriptionprotected Actionsprotected org.springframework.context.ApplicationContextprotected TableEditFragmentContentprotected DataComponentsstatic final intprotected Messagesprotected Metadataprotected Notificationsprotected CollectionPropertyContainer<TemplateTableBand>protected CollectionPropertyContainer<TemplateTableColumn>protected InstanceContainer<TemplateTableDescription>protected UiComponentsstatic final intFields inherited from class io.jmix.reportsflowui.view.template.AbstractDescriptionEditFragment
previewBox, reportTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanprotected voidprotected booleanprotected booleanprotected voidchangeOrderBandsOfIndexes(int order) protected booleanprotected booleanprotected booleanprotected TableEditFragmentContentprotected TemplateTableDescriptionprotected voidprotected voidprotected voidprotected TableEditFragmentContentprotected voidinitPreviewContent(com.vaadin.flow.component.orderedlayout.VerticalLayout previewBox) booleanisApplicable(ReportOutputType reportOutputType) booleanprotected voidprotected voidonBandDataGridSelection(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<TemplateTableBand>, TemplateTableBand> event) protected voidprotected voidonBandRemoveAfterActionPerformed(RemoveOperation.AfterActionPerformedEvent<TemplateTableBand> event) protected voidprotected voidprotected voidprotected voidonColumnRemoveAfterActionPerformed(RemoveOperation.AfterActionPerformedEvent<TemplateTableColumn> event) protected voidprotected voidprotected voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetReportTemplate(ReportTemplate reportTemplate) Methods inherited from class io.jmix.reportsflowui.view.template.AbstractDescriptionEditFragment
getPreviewBox, getReportTemplate, hidePreview, setPreviewBox, showPreviewMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin 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:
setReportTemplatein classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
initContent
- Overrides:
initContentin classcom.vaadin.flow.component.Composite<TableEditFragmentContent>
-
isSupportPreview
public boolean isSupportPreview()- Specified by:
isSupportPreviewin classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
isApplicable
- Specified by:
isApplicablein classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
applyChanges
public boolean applyChanges()- Specified by:
applyChangesin classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
initPreviewContent
protected void initPreviewContent(com.vaadin.flow.component.orderedlayout.VerticalLayout previewBox) - Specified by:
initPreviewContentin classAbstractDescriptionEditFragment<TableEditFragmentContent>
-
createDefaultTemplateTableDescription
-
changeOrderBandsOfIndexes
protected void changeOrderBandsOfIndexes(int order) -
refreshBandActionStates
protected void refreshBandActionStates() -
refreshColumnActionStates
protected void refreshColumnActionStates()
-