Package io.jmix.webdavflowui.component
Class WebdavDocumentLink
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
io.jmix.webdavflowui.component.WebdavDocumentLink
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.component.HasEnabled,- com.vaadin.flow.component.HasSize,- com.vaadin.flow.component.HasStyle,- com.vaadin.flow.component.HasTheme,- com.vaadin.flow.component.shared.HasTooltip,- SupportsValueSource<WebdavDocument>,- Serializable,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.ApplicationContextAware
@CssImport("./styles/webdav-version-button-style.css")
public class WebdavDocumentLink
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
implements SupportsValueSource<WebdavDocument>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.shared.HasTooltip, com.vaadin.flow.component.HasEnabled
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected WebdavDocumentReloaded instance fromwebdavDocument,valueSourceorwebdavDocumentIdprotected DialogWindowsprotected com.vaadin.flow.component.html.Anchorprotected WebdavDocumentsManagementServiceprotected Stringprotected FetchPlanRepositoryprotected com.vaadin.flow.shared.Registrationprotected BooleanSupplierprotected Messagesprotected MetaPropertyPathstatic final Stringprotected WebdavRawLinksManagementServiceprotected booleanprotected UiComponentsprotected com.vaadin.flow.shared.Registrationprotected ValueSource<WebdavDocument>protected static final Stringstatic final Stringprotected JmixButtonprotected booleanprotected WebdavDocumentSpecified documentprotected UUIDSpecified document idprotected WebdavPreconditionsprotected WebdavSecurityToolsprotected WebdavTools
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected voidstatic WebdavDocumentLink.Builderbuilder(UiComponents uiComponents) protected com.vaadin.flow.component.html.Anchorprotected JmixButtonprotected voidprotected com.vaadin.flow.component.html.Divprotected voidbooleanbooleanprotected WebdavDocumentprotected voidonVersionsViewClosed(List<WebdavDocumentVersion> webdavDocumentVersions) voidrefresh()voidsetAfterVersionEditCloseHandler(Consumer<FileRef> afterVersionEditCloseHandler) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetEnabled(boolean enabled) voidsetIsWebdavEnabledSupplier(BooleanSupplier isWebdavEnabledSupplier) voidsetShowVersion(boolean showVersion) voidsetValueSource(ValueSource<WebdavDocument> valueSource) voidsetVersionModifiable(boolean versionModifiable) voidsetWebdavDocument(WebdavDocument webdavDocument) voidsetWebdavDocumentId(UUID webdavDocumentId) protected voidMethods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElementgetElementMethods inherited from interface com.vaadin.flow.component.HasEnabledisEnabledMethods inherited from interface com.vaadin.flow.component.HasSizegetHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyleaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasThemeaddThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasTooltipgetTooltip, setTooltipText
- 
Field Details- 
NAME- See Also:
 
- 
VERSION_PREFIX- See Also:
 
- 
VERSION_LINK_TAG- See Also:
 
- 
fetchPlanName
- 
documentLinkprotected com.vaadin.flow.component.html.Anchor documentLink
- 
versionLink
- 
actualDocumentReloaded instance fromwebdavDocument,valueSourceorwebdavDocumentId
- 
webdavDocumentSpecified document
- 
webdavDocumentIdSpecified document id
- 
showVersionprotected boolean showVersion
- 
versionModifiableprotected boolean versionModifiable
- 
valueSource
- 
metaPropertyPath
- 
documentsService
- 
rawLinksService
- 
wprecond
- 
wsec
- 
wtools
- 
uiComponents
- 
messages
- 
fetchPlanRepository
- 
dialogWindows
- 
isWebdavEnabledSupplier
- 
valueChangeSubscriptionprotected com.vaadin.flow.shared.Registration valueChangeSubscription
- 
instanceChangeSubscriptionprotected com.vaadin.flow.shared.Registration instanceChangeSubscription
- 
afterVersionEditCloseHandler
 
- 
- 
Constructor Details- 
WebdavDocumentLinkpublic WebdavDocumentLink()
 
- 
- 
Method Details- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
initBeansprotected void initBeans()
- 
initContentprotected com.vaadin.flow.component.html.Div initContent()- Overrides:
- initContentin class- com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
 
- 
initLinksprotected void initLinks()
- 
createVersionButton
- 
createDocumentLinkprotected com.vaadin.flow.component.html.Anchor createDocumentLink()
- 
onVersionsViewClosed
- 
refreshpublic void refresh()
- 
loadContent
- 
getWebdavDocumentId
- 
setWebdavDocumentId
- 
setWebdavDocument
- 
getWebdavDocument
- 
setShowVersionpublic void setShowVersion(boolean showVersion) 
- 
isShowVersionpublic boolean isShowVersion()
- 
setVersionModifiablepublic void setVersionModifiable(boolean versionModifiable) 
- 
isVersionModifiablepublic boolean isVersionModifiable()
- 
getWebdavContent
- 
getMetaPropertyPath
- 
getIsWebdavEnabledSupplier
- 
setIsWebdavEnabledSupplier
- 
getValueSource- Specified by:
- getValueSourcein interface- SupportsValueSource<WebdavDocument>
 
- 
setValueSource- Specified by:
- setValueSourcein interface- SupportsValueSource<WebdavDocument>
 
- 
unbindValueSourceEventsprotected void unbindValueSourceEvents()
- 
bindValueSourceEventsprotected void bindValueSourceEvents()
- 
setAfterVersionEditCloseHandler
- 
getAfterVersionEditCloseHandler
- 
getActualDocument
- 
setEnabledpublic void setEnabled(boolean enabled) - Specified by:
- setEnabledin interface- com.vaadin.flow.component.HasEnabled
 
- 
builder
 
-