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 SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceInterface that should be implemented in order to handle change context action.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns parent document for current context.voidgoToRoot()Moves context to the root of the document hierarchy.voidMoves context to the one level up.booleanisRoot()Returns true if current context is on top levelvoidrefresh()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- 
ParentDocumentContextHolderpublic ParentDocumentContextHolder()
 
- 
- 
Method Details- 
getParentDocumentReturns parent document for current context.- Returns:
- parent document for current context
 
- 
setParentDocumentChanges current context to new parent document.- Parameters:
- parentDocument- - document to be set
 
- 
goToRootpublic void goToRoot()Moves context to the root of the document hierarchy.
- 
goToUpperLevelpublic void goToUpperLevel()Moves context to the one level up.
- 
isRootpublic boolean isRoot()Returns true if current context is on top level
- 
setChangeActionSets the handler for changing current context.- Parameters:
- changeAction- - action that will be performed when context is changed
 
- 
refreshpublic void refresh()Calls action handler in order to refresh dependent objects' states.
 
-