Interface ITreeModel
- All Superinterfaces:
IModel
,IValidable
- All Known Implementing Classes:
InfobasePublicationsModel
The interface of model for tree component.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Object element) Returns a stream of children objects of the specified parentelement
.Returns a stream of top level objectsReturns the parent object for the specifiedelement
.boolean
hasChildren
(Object element) Returnstrue
if the specfiedelement
has children.Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Method Details
-
getElements
Returns a stream of top level objects- Returns:
- a stream of top level objects, never
null
.
-
getChildren
Returns a stream of children objects of the specified parentelement
.- Parameters:
element
- the parent object to get its children, cannot benull
.- Returns:
- a stream of children objects, never
null
.
-
hasChildren
Returnstrue
if the specfiedelement
has children.- Parameters:
element
- the element to test, cannot benull
.- Returns:
true
if the specfiedelement
has children,false
- otherwise.- See Also:
-
getParent
Returns the parent object for the specifiedelement
.- Parameters:
element
- the element to get its parent, cannot benull
.- Returns:
- the parent object or
Optional.empty()
if there is no parent element, nevernull
-