Class ExportDialog<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>
-
- com.ocs.dynamo.ui.composite.export.ExportDialog<ID,T>
-
- Type Parameters:
ID- the class of the ID of the entity that is being exportedT- the class of the entity that is being exported
- 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
public class ExportDialog<ID extends Serializable,T extends AbstractEntity<ID>> extends BaseExportDialog<ID,T>
A simple dialog window that offers several buttons for exporting data to various formats- Author:
- Bas Rutten
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ocs.dynamo.ui.composite.export.BaseExportDialog
EXTENSION_CSV, EXTENSION_XLS
-
-
Constructor Summary
Constructors Constructor Description ExportDialog(ExportService exportService, EntityModel<T> entityModel, ExportMode exportMode, com.vaadin.flow.function.SerializablePredicate<T> predicate, List<com.vaadin.flow.data.provider.SortOrder<?>> sortOrders, Supplier<CustomXlsStyleGenerator<ID,T>> customGenerator, FetchJoinInformation... joins)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DownloadButtoncreateDownloadCSVButton()protected DownloadButtoncreateDownloadExcelButton()-
Methods inherited from class com.ocs.dynamo.ui.composite.export.BaseExportDialog
doBuild, doBuildButtonBar, getEntityModel, getExportCsvButton, getExportExcelButton, getExportMode, getExportService, getStyleName, getTitle
-
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
-
-
-
-
Constructor Detail
-
ExportDialog
public ExportDialog(ExportService exportService, EntityModel<T> entityModel, ExportMode exportMode, com.vaadin.flow.function.SerializablePredicate<T> predicate, List<com.vaadin.flow.data.provider.SortOrder<?>> sortOrders, Supplier<CustomXlsStyleGenerator<ID,T>> customGenerator, FetchJoinInformation... joins)
Constructor- Parameters:
exportService- the export serviceentityModel- the entity model of the entity to exportexportMode- the export modepredicate- predicated used to filter the resultssortOrders- sort orders to apply to the resultscustomGenerator- custom style generatorjoins-
-
-
Method Detail
-
createDownloadCSVButton
protected DownloadButton createDownloadCSVButton()
- Specified by:
createDownloadCSVButtonin classBaseExportDialog<ID extends Serializable,T extends AbstractEntity<ID>>
-
createDownloadExcelButton
protected DownloadButton createDownloadExcelButton()
- Specified by:
createDownloadExcelButtonin classBaseExportDialog<ID extends Serializable,T extends AbstractEntity<ID>>
-
-