Class ParentDocumentContextHolder
java.lang.Object
io.jmix.webdavflowui.view.webdavdocument.ParentDocumentContextHolder
Holds current parent document object for documents and collections that are displayed on the screen and performs
ParentDocumentContextHolder.OnParentChangeAction
when holding value is changed.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface that should be implemented in order to handle change context action. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns parent document for current context.void
goToRoot()
Moves context to the root of the document hierarchy.void
Moves context to the one level up.void
refresh()
Calls action handler in order to refresh dependent objects' states.void
Sets the handler for changing current context.void
setParentDocument
(WebdavDocument parentDocument) Changes current context to new parent document.
-
Constructor Details
-
ParentDocumentContextHolder
public ParentDocumentContextHolder()
-
-
Method Details
-
getParentDocument
Returns parent document for current context.- Returns:
- parent document for current context
-
setParentDocument
Changes current context to new parent document.- Parameters:
parentDocument
- - document to be set
-
goToRoot
public void goToRoot()Moves context to the root of the document hierarchy. -
goToUpperLevel
public void goToUpperLevel()Moves context to the one level up. -
setChangeAction
Sets the handler for changing current context.- Parameters:
changeAction
- - action that will be performed when context is changed
-
refresh
public void refresh()Calls action handler in order to refresh dependent objects' states.
-