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 Summary
Nested Classes -
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, 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.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.HasEnabled
isEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
-
Field Details
-
NAME
- See Also:
-
VERSION_PREFIX
- See Also:
-
VERSION_LINK_TAG
- See Also:
-
fetchPlanName
-
documentLink
protected com.vaadin.flow.component.html.Anchor documentLink -
versionLink
-
actualDocument
Reloaded instance fromwebdavDocument,valueSourceorwebdavDocumentId -
webdavDocument
Specified document -
webdavDocumentId
Specified document id -
showVersion
protected boolean showVersion -
versionModifiable
protected boolean versionModifiable -
valueSource
-
metaPropertyPath
-
documentsService
-
rawLinksService
-
wprecond
-
wsec
-
wtools
-
uiComponents
-
messages
-
fetchPlanRepository
-
dialogWindows
-
isWebdavEnabledSupplier
-
valueChangeSubscription
protected com.vaadin.flow.shared.Registration valueChangeSubscription -
instanceChangeSubscription
protected com.vaadin.flow.shared.Registration instanceChangeSubscription -
afterVersionEditCloseHandler
-
-
Constructor Details
-
WebdavDocumentLink
public WebdavDocumentLink()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
initBeans
protected void initBeans() -
initContent
protected com.vaadin.flow.component.html.Div initContent()- Overrides:
initContentin classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
-
initLinks
protected void initLinks() -
createVersionButton
-
createDocumentLink
protected com.vaadin.flow.component.html.Anchor createDocumentLink() -
onVersionsViewClosed
-
refresh
public void refresh() -
loadContent
-
getWebdavDocumentId
-
setWebdavDocumentId
-
setWebdavDocument
-
getWebdavDocument
-
setShowVersion
public void setShowVersion(boolean showVersion) -
isShowVersion
public boolean isShowVersion() -
setVersionModifiable
public void setVersionModifiable(boolean versionModifiable) -
isVersionModifiable
public boolean isVersionModifiable() -
getWebdavContent
-
getMetaPropertyPath
-
getIsWebdavEnabledSupplier
-
setIsWebdavEnabledSupplier
-
getValueSource
- Specified by:
getValueSourcein interfaceSupportsValueSource<WebdavDocument>
-
setValueSource
- Specified by:
setValueSourcein interfaceSupportsValueSource<WebdavDocument>
-
unbindValueSourceEvents
protected void unbindValueSourceEvents() -
bindValueSourceEvents
protected void bindValueSourceEvents() -
setAfterVersionEditCloseHandler
-
getAfterVersionEditCloseHandler
-
getActualDocument
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacecom.vaadin.flow.component.HasEnabled
-
builder
-