Class InfobasePublicationsModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com.e1c.g5.dt.internal.applications.ui.editor.infobases.aef.model.InfobasePublicationsModel
- All Implemented Interfaces:
IModel
,IValidable
,ITreeModel
The tree model for publications.
-
Constructor Summary
ConstructorsConstructorDescriptionInfobasePublicationsModel
(IApplicationManager applicationManager, IPublicationManager publicationManager, IWebServerManager webServerManager, IApplication application) Creates a new model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this model.getChildren
(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 class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
InfobasePublicationsModel
public InfobasePublicationsModel(IApplicationManager applicationManager, IPublicationManager publicationManager, IWebServerManager webServerManager, IApplication application) Creates a new model.- Parameters:
applicationManager
- theIApplicationManager
instance, cannot benull
.publicationManager
- theIPublicationManager
instance, cannot benull
.webServerManager
- theIWebServerManager
instance, cannot benull
.application
- the application, cannot benull
.
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
getChange
-
getElements
Description copied from interface:ITreeModel
Returns a stream of top level objects- Specified by:
getElements
in interfaceITreeModel
- Returns:
- a stream of top level objects, never
null
.
-
getChildren
Description copied from interface:ITreeModel
Returns a stream of children objects of the specified parentelement
.- Specified by:
getChildren
in interfaceITreeModel
- Parameters:
element
- the parent object to get its children, cannot benull
.- Returns:
- a stream of children objects, never
null
.
-
hasChildren
Description copied from interface:ITreeModel
Returnstrue
if the specfiedelement
has children.- Specified by:
hasChildren
in interfaceITreeModel
- Parameters:
element
- the element to test, cannot benull
.- Returns:
true
if the specfiedelement
has children,false
- otherwise.- See Also:
-
getParent
Description copied from interface:ITreeModel
Returns the parent object for the specifiedelement
.- Specified by:
getParent
in interfaceITreeModel
- Parameters:
element
- the element to get its parent, cannot benull
.- Returns:
- the parent object or
Optional.empty()
if there is no parent element, nevernull
-