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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface that should be implemented in order to handle change context action. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns parent document for current context.voidgoToRoot()Moves context to the root of the document hierarchy.voidMoves context to the one level up.voidrefresh()Calls action handler in order to refresh dependent objects' states.voidSets the handler for changing current context.voidsetParentDocument(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.
-