Class WebdavShowDocumentVersionsDetailView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardDetailView<WebdavDocument>
io.jmix.webdavflowui.view.webdavdocumentversion.WebdavShowDocumentVersionsDetailView
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.router.AfterNavigationObserver
,com.vaadin.flow.router.BeforeEnterObserver
,com.vaadin.flow.router.BeforeLeaveObserver
,com.vaadin.flow.router.HasDynamicTitle
,com.vaadin.flow.router.internal.AfterNavigationHandler
,com.vaadin.flow.router.internal.BeforeEnterHandler
,com.vaadin.flow.router.internal.BeforeLeaveHandler
,ChangeTracker
,DetailView<WebdavDocument>
,ReadOnlyAwareView
,Serializable
@Route(value="webdav/webdavshowdocumentversions/:id",
layout=DefaultMainViewParent.class)
@ViewController("webdav_WebdavShowDocumentVersions.detail")
@ViewDescriptor("webdav-show-document-versions-detail-view.xml")
@DialogMode(width="64em",
resizable=true)
public class WebdavShowDocumentVersionsDetailView
extends StandardDetailView<WebdavDocument>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.StandardDetailView
StandardDetailView.AfterSaveEvent, StandardDetailView.BeforeSaveEvent, StandardDetailView.InitEntityEvent<E>, StandardDetailView.SetupLockEvent, StandardDetailView.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Long
protected Downloader
protected Boolean
protected Consumer<List<WebdavDocumentVersion>>
protected List<WebdavDocumentVersion>
protected Boolean
Fields inherited from class io.jmix.flowui.view.StandardDetailView
DEFAULT_ROUTE_PARAM, LOCKED_BEFORE_REFRESH_ATTR_NAME, MODE_PARAM, MODE_READONLY, NEW_ENTITY_ID, READ_ONLY_BEFORE_REFRESH_ATTR_NAME, reloadSaved
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNewVersion
(WebdavDocumentVersion newVersion) void
protected Action
protected Action
protected Action
protected MergePolicy<WebdavDocumentVersion>
void
protected void
lock()
protected void
protected com.vaadin.flow.data.renderer.Renderer<WebdavDocumentVersion>
protected org.apache.commons.compress.archivers.zip.ZipArchiveEntry
newStoredEntry
(String name, byte[] data) void
onAfterClose
(View.AfterCloseEvent event) void
onBeforeShow
(View.BeforeShowEvent event) void
onInit
(View.InitEvent event) void
onLockBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) void
void
void
onRefreshClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
protected WebdavDocument
void
setListener
(Consumer<List<WebdavDocumentVersion>> listener) void
setReadOnly
(Boolean readOnly) void
protected void
unlock()
protected void
void
updateDsAndClearNewVersionList
(boolean applyListener) protected com.vaadin.flow.data.renderer.Renderer<WebdavDocumentVersion>
Methods inherited from class io.jmix.flowui.view.StandardDetailView
addAfterSaveListener, addBeforeSaveListener, addInitEntityListener, addValidationEventListener, beforeEnter, closeWithDiscard, closeWithSave, findEntityId, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getLockStatus, getRouteParamName, hasUnsavedChanges, initExistingEntity, initNewEntity, isCrossFieldValidationEnabled, isReadOnly, isReloadEdited, isReloadSaved, isSaveActionPerformed, isShowSaveNotification, isShowValidationErrors, save, setCrossFieldValidationEnabled, setEntityToEdit, setReadOnly, setReloadEdited, setReloadSaved, setShowSaveNotification, setShowValidationErrors, setupEntityToEdit, setupEntityToEdit, setupEntityToEdit, validateView
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
downloader
-
newVersions
-
baseVersion
-
isDocumentLockedByUser
-
listener
-
readOnly
-
-
Constructor Details
-
WebdavShowDocumentVersionsDetailView
public WebdavShowDocumentVersionsDetailView()
-
-
Method Details
-
createDownloadAction
-
createNewVersionAction
-
createDownloadAsZipAction
-
newStoredEntry
protected org.apache.commons.compress.archivers.zip.ZipArchiveEntry newStoredEntry(String name, byte[] data) -
onInit
-
versionCellRenderer
@Supply(to="webdavDocumentVersionsGrid.naturalVersionId", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<WebdavDocumentVersion> versionCellRenderer() -
nameCellRenderer
@Supply(to="webdavDocumentVersionsGrid.name", subject="renderer") protected com.vaadin.flow.data.renderer.Renderer<WebdavDocumentVersion> nameCellRenderer() -
initActions
public void initActions() -
onBeforeShow
-
onPreCommit
-
onPostCommit
-
onAfterClose
-
addNewVersion
-
getDefaultMergePolicy
-
sortTableByNaturalVersionId
public void sortTableByNaturalVersionId() -
updateDsAndClearNewVersionList
public void updateDsAndClearNewVersionList(boolean applyListener) -
setReadOnly
-
setListener
-
applyListener
public void applyListener() -
onLockBtnClick
@Subscribe("lockBtn") public void onLockBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
lock
protected void lock() -
unlock
protected void unlock() -
lockDocument
protected void lockDocument() -
unlockDocument
protected void unlockDocument() -
reloadedDocument
-
onRefreshClick
@Subscribe("refresh") public void onRefreshClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
onwebdavDocumentVersionsGridOpenDocumentAction
@Subscribe("webdavDocumentVersionsGrid.openDocumentAction") protected void onwebdavDocumentVersionsGridOpenDocumentAction(ActionPerformedEvent event)
-