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 JmixButtonReturns the currentValueSourceassociated with this component.protected 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) Sets aValueSourcefor this component, allowing it to bind its value to a specified data source.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
Description copied from interface:SupportsValueSourceReturns the currentValueSourceassociated with this component.- Specified by:
getValueSourcein interfaceSupportsValueSource<WebdavDocument>- Returns:
- the associated
ValueSource, ornullif no value source is set
-
setValueSource
Description copied from interface:SupportsValueSourceSets aValueSourcefor this component, allowing it to bind its value to a specified data source.- Specified by:
setValueSourcein interfaceSupportsValueSource<WebdavDocument>- Parameters:
valueSource- theValueSourceto be associated with this component, ornullto remove the current association
-
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
-