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
-
Field Summary
Modifier and TypeFieldDescriptionprotected WebdavDocument
Reloaded instance fromwebdavDocument
,valueSource
orwebdavDocumentId
protected DialogWindows
protected com.vaadin.flow.component.html.Anchor
protected WebdavDocumentsManagementService
protected String
protected FetchPlanRepository
protected com.vaadin.flow.shared.Registration
protected BooleanSupplier
protected Messages
protected MetaPropertyPath
static final String
protected WebdavRawLinksManagementService
protected boolean
protected UiComponents
protected com.vaadin.flow.shared.Registration
protected ValueSource<WebdavDocument>
protected static final String
static final String
protected JmixButton
protected boolean
protected WebdavDocument
Specified documentprotected UUID
Specified document idprotected WebdavPreconditions
protected WebdavSecurityTools
protected WebdavTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
static WebdavDocumentLink.Builder
builder
(UiComponents uiComponents) protected com.vaadin.flow.component.html.Anchor
protected JmixButton
protected void
protected com.vaadin.flow.component.html.Div
protected void
boolean
boolean
protected WebdavDocument
protected void
onVersionsViewClosed
(List<WebdavDocumentVersion> webdavDocumentVersions) void
refresh()
void
setAfterVersionEditCloseHandler
(Consumer<FileRef> afterVersionEditCloseHandler) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setEnabled
(boolean enabled) void
setIsWebdavEnabledSupplier
(BooleanSupplier isWebdavEnabledSupplier) void
setShowVersion
(boolean showVersion) void
setValueSource
(ValueSource<WebdavDocument> valueSource) void
setVersionModifiable
(boolean versionModifiable) void
setWebdavDocument
(WebdavDocument webdavDocument) void
setWebdavDocumentId
(UUID webdavDocumentId) protected void
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, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, 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.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled
Methods 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, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
Methods 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
,valueSource
orwebdavDocumentId
-
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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
initBeans
protected void initBeans() -
initContent
protected com.vaadin.flow.component.html.Div initContent()- Overrides:
initContent
in 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:
getValueSource
in interfaceSupportsValueSource<WebdavDocument>
-
setValueSource
- Specified by:
setValueSource
in interfaceSupportsValueSource<WebdavDocument>
-
unbindValueSourceEvents
protected void unbindValueSourceEvents() -
bindValueSourceEvents
protected void bindValueSourceEvents() -
setAfterVersionEditCloseHandler
-
getAfterVersionEditCloseHandler
-
getActualDocument
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfacecom.vaadin.flow.component.HasEnabled
-
builder
-