Package com.storedobject.ui.util
Class ContentGenerator
java.lang.Object
com.storedobject.ui.util.AbstractContentGenerator
com.storedobject.ui.util.ContentGenerator
-
Field Summary
Fields inherited from class com.storedobject.ui.util.AbstractContentGenerator
thread -
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 TypeMethodDescriptionvoidCreate the download stream (Used when the content is downloaded).voidkick()voidrun()voidsetViewer(DocumentViewer viewer) protected voidstarted()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:
getContentin classAbstractContentGenerator- Returns:
- Stream to download.
- Throws:
Exception- If any error occurs.
-
abort
- Overrides:
abortin classAbstractContentGenerator
-