Package com.storedobject.vaadin
Class PDFViewer
java.lang.Object
com.vaadin.flow.component.Component
com.storedobject.vaadin.AbstractResourcedComponent
com.storedobject.vaadin.PDFViewer
- 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
- Direct Known Subclasses:
DocumentViewer
A PDF viewer component that uses browser's native object tag.
- Author:
- Syam
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.vaadin.AbstractResourcedComponent
clear, onAttach, onDetach, setSource, 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
-
PDFViewer
public PDFViewer()Default constructor. -
PDFViewer
Constructor with file to view.- Parameters:
fileURI- URI of the file to view
-
PDFViewer
public PDFViewer(com.vaadin.flow.server.AbstractStreamResource streamResource) Constructor with a stream resource to view.- Parameters:
streamResource- Stream resource
-
-
Method Details
-
init
protected void init()This will be invoked by the constructor for initial set up.- Overrides:
initin classAbstractResourcedComponent
-
getURIAttributeName
Description copied from class:AbstractResourcedComponentGet the name of the URI attribute. The default value returned is "src".- Specified by:
getURIAttributeNamein classAbstractResourcedComponent- Returns:
- URI attribute name.
-