Package com.storedobject.ui
Class UploadProcessorView
java.lang.Object
com.storedobject.vaadin.View
com.storedobject.ui.TextView
com.storedobject.ui.UploadProcessorView
- All Implemented Interfaces:
Executable
,Reentrant
,StyledBuilder
,HasLogic
,StyledBuilder
,Transactional
,ClickHandler
,CloseableView
,ExecutableView
,HTMLGenerator
,ValueChangeHandler
,com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>
,com.vaadin.flow.component.HasValue.ValueChangeListener
,Serializable
,Runnable
,EventListener
- Direct Known Subclasses:
CSVUploadProcessorView
,ExcelDataUpload
,ZipUploadProcessorView
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.vaadin.ClickHandler
ClickHandler.ModifiedClickEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style
-
Field Summary
Fields inherited from interface com.storedobject.vaadin.HTMLGenerator
CHAR_ENTITIES
Fields inherited from interface com.storedobject.common.StyledBuilder
EMPTY_STRINGS
-
Constructor Summary
ConstructorsConstructorDescriptionUploadProcessorView
(String caption) UploadProcessorView
(String caption, String message) UploadProcessorView
(String caption, String message, BiConsumer<InputStream, String> processor) UploadProcessorView
(String caption, BiConsumer<InputStream, String> processor) -
Method Summary
Modifier and TypeMethodDescriptionint
protected com.vaadin.flow.component.Component
com.vaadin.flow.component.upload.Upload
protected void
process
(InputStream content, String mimeType) void
setMaxFiles
(int fileCount) void
setProcessor
(Processor processor) void
setProcessor
(BiConsumer<InputStream, String> processor) protected void
Methods inherited from class com.storedobject.ui.TextView
abort, add, clean, clearContent, close, decorateComponent, error, error, execute, getApplication, getBottomComponent, getInternalStyledBuilder, initUI, isNewLine, message, message, newLine, popup, process, readyForProcessing, remove, setApplication, setCaption, setIndeterminate, setProgress, setProgressCaption, setText, setValue, startProcess, warning, warning
Methods inherited from class com.storedobject.vaadin.View
aborted, addClosedListener, addOpenedListener, createCloseableView, createWindow, execute, execute, executing, focus, focus, focusAny, getCaption, getComponent, getContent, getCreatedBy, getEmbeddedView, getMenuItem, getMenuItem, getView, invoke, isFullScreen, isScrollable, isWindowMode, select, setComponent, setCreatedBy, setDefaultPadding, setEmbeddedView, setFirstFocus, setFullScreen, setScrollable, setWindowMode, skipFirstFocus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClicked
Methods inherited from interface com.storedobject.common.Executable
act
Methods inherited from interface com.storedobject.vaadin.ExecutableView
clearAlerts, clicked, createMenuItem, execute, getCaption, getMenuIconName, getMenuItem, getView, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, returnedFrom, run, setClickable, speak, trackValueChange, tray, valueChanged
Methods inherited from interface com.storedobject.vaadin.HTMLGenerator
getPrintText
Methods inherited from interface com.storedobject.common.Reentrant
isReentrant
Methods inherited from interface com.storedobject.common.StyledBuilder
append, newLine, setValue
Methods inherited from interface com.storedobject.ui.StyledBuilder
append, append, append, appendHTML, appendIcon, appendWithTag, appendWithTag, blackMessage, blueMessage, clear, drawLine, getHTML, getValue, isEmpty, redMessage, setValue, space, update
Methods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
UploadProcessorView
-
UploadProcessorView
-
UploadProcessorView
-
UploadProcessorView
public UploadProcessorView(String caption, String message, BiConsumer<InputStream, String> processor)
-
-
Method Details
-
getUploadComponent
public com.vaadin.flow.component.upload.Upload getUploadComponent() -
getTopComponent
protected com.vaadin.flow.component.Component getTopComponent()- Overrides:
getTopComponent
in classTextView
-
getProgressCaption
- Overrides:
getProgressCaption
in classTextView
-
setProcessor
-
setProcessor
- Overrides:
setProcessor
in classTextView
-
process
-
uploadAborted
protected void uploadAborted() -
getFileName
-
setMaxFiles
public void setMaxFiles(int fileCount) -
getFileCount
public int getFileCount()
-