Package com.storedobject.ui.util
Class ContentGenerator
java.lang.Object
com.storedobject.ui.util.AbstractContentGenerator
com.storedobject.ui.util.ContentGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionContentGenerator
(Application application, ContentProducer producer, boolean download, String caption, Consumer<AbstractContentGenerator> inform, Consumer<Long> timeTracker, Runnable preRun, boolean windowMode, com.vaadin.flow.component.Component... extraHeaderButtons) ContentGenerator
(Application application, ContentProducer producer, String caption, Consumer<AbstractContentGenerator> inform, Consumer<Long> timeTracker, Runnable preRun, boolean windowMode, com.vaadin.flow.component.Component... extraHeaderButtons) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Create the download stream (Used when the content is downloaded).void
kick()
void
run()
void
setViewer
(DocumentViewer viewer) protected void
started()
Methods inherited from class com.storedobject.ui.util.AbstractContentGenerator
createFile, equals, getContentStream, getExt, getId, getProducer, hashCode
-
Constructor Details
-
ContentGenerator
public ContentGenerator(Application application, ContentProducer producer, String caption, Consumer<AbstractContentGenerator> inform, Consumer<Long> timeTracker, Runnable preRun, boolean windowMode, com.vaadin.flow.component.Component... extraHeaderButtons) -
ContentGenerator
public ContentGenerator(Application application, ContentProducer producer, boolean download, String caption, Consumer<AbstractContentGenerator> inform, Consumer<Long> timeTracker, Runnable preRun, boolean windowMode, com.vaadin.flow.component.Component... extraHeaderButtons)
-
-
Method Details
-
setViewer
-
run
public void run() -
kick
public void kick() -
started
protected void started() -
getContent
Create the download stream (Used when the content is downloaded).- Specified by:
getContent
in classAbstractContentGenerator
- Returns:
- Stream to download.
- Throws:
Exception
- If any error occurs.
-
abort
- Overrides:
abort
in classAbstractContentGenerator
-