Package com.storedobject.ui.util
Class DocumentViewer
java.lang.Object
com.vaadin.flow.component.Component
com.storedobject.vaadin.AbstractResourcedComponent
com.storedobject.vaadin.PDFViewer
com.storedobject.ui.util.DocumentViewer
- All Implemented Interfaces:
HasSize
,ResourcedComponent
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.Component
void
setDocument
(ContentProducer contentProducer) void
setDocument
(Id streamDataId) void
setDocument
(StreamData streamData) void
setExtraButtons
(com.vaadin.flow.component.Component... extraButtons) void
Set the file to view.void
setWindowMode
(boolean windowMode) void
static void
static void
view
(String caption, MediaFile mediaFile, boolean windowMode, com.vaadin.flow.component.Component[] extraButtons) Methods inherited from class com.storedobject.vaadin.PDFViewer
getURIAttributeName, init
Methods inherited from class com.storedobject.vaadin.AbstractResourcedComponent
clear, onAttach, onDetach, setSource, setURI
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
DocumentViewer
-
-
Method Details
-
view
-
view
-
setSource
Description copied from class:AbstractResourcedComponent
Set the file to view.- Overrides:
setSource
in classAbstractResourcedComponent
- Parameters:
fileURL
- URL of the file to view
-
setWindowMode
public void setWindowMode(boolean windowMode) -
setExtraButtons
public void setExtraButtons(com.vaadin.flow.component.Component... extraButtons) -
setDocument
-
setDocument
-
view
-
setDocument
-
getViewerComponent
public com.vaadin.flow.component.Component getViewerComponent()
-