Class BaseExportDialog<ID extends Serializable,T extends AbstractEntity<ID>>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.dialog.GeneratedVaadinDialog<com.vaadin.flow.component.dialog.Dialog>
-
- com.vaadin.flow.component.dialog.Dialog
-
- com.ocs.dynamo.ui.composite.dialog.BaseModalDialog
-
- com.ocs.dynamo.ui.composite.export.BaseExportDialog<ID,T>
-
- Type Parameters:
ID- the type of the ID of the entity to exportT- the type of the entity to export
- All Implemented Interfaces:
Buildable,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,Serializable
- Direct Known Subclasses:
ExportDialog,FixedExportDialog,PivotedExportDialog
public abstract class BaseExportDialog<ID extends Serializable,T extends AbstractEntity<ID>> extends BaseModalDialog
Base class for export dialogs- Author:
- Bas Rutten
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringEXTENSION_CSVprotected static StringEXTENSION_XLS
-
Constructor Summary
Constructors Constructor Description BaseExportDialog(ExportService exportService, EntityModel<T> entityModel, ExportMode exportMode)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DownloadButtoncreateDownloadCSVButton()protected abstract DownloadButtoncreateDownloadExcelButton()protected voiddoBuild(com.vaadin.flow.component.orderedlayout.VerticalLayout parent)protected voiddoBuildButtonBar(com.vaadin.flow.component.orderedlayout.HorizontalLayout buttonBar)EntityModel<T>getEntityModel()DownloadButtongetExportCsvButton()DownloadButtongetExportExcelButton()ExportModegetExportMode()ExportServicegetExportService()protected StringgetStyleName()protected StringgetTitle()-
Methods inherited from class com.ocs.dynamo.ui.composite.dialog.BaseModalDialog
build, buildAndOpen, getMessageService, message, message, showNotification
-
Methods inherited from class com.vaadin.flow.component.dialog.Dialog
add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, close, getChildren, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, open, remove, removeAll, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setWidth
-
Methods inherited from class com.vaadin.flow.component.dialog.GeneratedVaadinDialog
getAriaLabelString, isOpenedBoolean, setAriaLabel
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
-
-
-
Field Detail
-
EXTENSION_CSV
protected static final String EXTENSION_CSV
- See Also:
- Constant Field Values
-
EXTENSION_XLS
protected static final String EXTENSION_XLS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseExportDialog
public BaseExportDialog(ExportService exportService, EntityModel<T> entityModel, ExportMode exportMode)
Constructor- Parameters:
exportService- the export buttonentityModel- the entity model of the entity to exportexportMode- the export mode
-
-
Method Detail
-
createDownloadCSVButton
protected abstract DownloadButton createDownloadCSVButton()
-
createDownloadExcelButton
protected abstract DownloadButton createDownloadExcelButton()
-
doBuild
protected void doBuild(com.vaadin.flow.component.orderedlayout.VerticalLayout parent)
- Specified by:
doBuildin classBaseModalDialog
-
doBuildButtonBar
protected void doBuildButtonBar(com.vaadin.flow.component.orderedlayout.HorizontalLayout buttonBar)
- Specified by:
doBuildButtonBarin classBaseModalDialog
-
getEntityModel
public EntityModel<T> getEntityModel()
-
getExportMode
public ExportMode getExportMode()
-
getExportService
public ExportService getExportService()
-
getTitle
protected String getTitle()
- Specified by:
getTitlein classBaseModalDialog
-
getStyleName
protected String getStyleName()
- Overrides:
getStyleNamein classBaseModalDialog
-
getExportCsvButton
public DownloadButton getExportCsvButton()
-
getExportExcelButton
public DownloadButton getExportExcelButton()
-
-