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.ComponentvoidsetDocument(ContentProducer contentProducer) voidsetDocument(Id streamDataId) voidsetDocument(StreamData streamData) voidsetExtraButtons(com.vaadin.flow.component.Component... extraButtons) voidSet the file to view.voidsetWindowMode(boolean windowMode) voidstatic voidstatic voidview(String caption, MediaFile mediaFile, boolean windowMode, com.vaadin.flow.component.Component[] extraButtons) Methods inherited from class com.storedobject.vaadin.PDFViewer
getURIAttributeName, initMethods inherited from class com.storedobject.vaadin.AbstractResourcedComponent
clear, onAttach, onDetach, setSource, setURIMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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, setWidthFullMethods 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:AbstractResourcedComponentSet the file to view.- Overrides:
setSourcein 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()
-