Class NavigatorTreeDialogModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.NavigatorTreeDialogModel
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
public class NavigatorTreeDialogModel extends EditableModel
Navigator tree dialog model.
-
-
Constructor Summary
Constructors Constructor Description NavigatorTreeDialogModel(ISubtreeInducer subtreeInducer, Map<IV8Project,EObjectTrie> trieMap, Class<?>[] nodesToFlatten, List<Object> initialSelected)
Creates new navigator tree dialog model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ICheckStateProvider
createCheckStateProvider(NavigatorTreeModel navigatorTreeModel)
Creates check state provider for navigator tree model.void
dispose()
Disposes this model.IChange
getChange()
List<Object>
getCheckedObjects()
Returns checked objects.NavigatorTreeModel
getNavigatorTreeModel()
Returns navigator tree model.String
getPresentationValue(MdObject mdObject, boolean qualifiedNamePresentation)
Returns md-object presentation.boolean
isInitialNodeComparatorUsed()
Returnstrue
if initial trie comparator used.void
restoreInitialNodeComparator()
Restore theIEObjectTrie.INode
initial comparator to sort child nodes in the trie.void
setAbcNodeComparator()
Sets theIEObjectTrie.INode
comparator to abc-sort child nodes in the trie.-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
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.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
NavigatorTreeDialogModel
public NavigatorTreeDialogModel(ISubtreeInducer subtreeInducer, Map<IV8Project,EObjectTrie> trieMap, Class<?>[] nodesToFlatten, List<Object> initialSelected)
Creates new navigator tree dialog model.- Parameters:
subtreeInducer
- the subtree inducer, can benull
trieMap
- the trie map, cannot benull
nodesToFlatten
- the nodes to flatten inFlatteningTreeContentProvider
, can benull
.initialSelected
- the initial selected objects, cannot benull
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.
-
getChange
public IChange getChange()
- Returns:
- change describing the modifications done to the model.
-
getCheckedObjects
public List<Object> getCheckedObjects()
Returns checked objects.- Returns:
- the checked objects, cannot be
null
-
getNavigatorTreeModel
public NavigatorTreeModel getNavigatorTreeModel()
Returns navigator tree model.- Returns:
- the navigator tree model, cannot be
null
-
getPresentationValue
public String getPresentationValue(MdObject mdObject, boolean qualifiedNamePresentation)
Returns md-object presentation.- Parameters:
mdObject
- the md-object, cannot benull
qualifiedNamePresentation
- the qualified name presentation flag- Returns:
- the md-object presentation or empty if object
null
or proxy
-
setAbcNodeComparator
public void setAbcNodeComparator()
Sets theIEObjectTrie.INode
comparator to abc-sort child nodes in the trie.
-
restoreInitialNodeComparator
public void restoreInitialNodeComparator()
Restore theIEObjectTrie.INode
initial comparator to sort child nodes in the trie.
-
isInitialNodeComparatorUsed
public boolean isInitialNodeComparatorUsed()
Returnstrue
if initial trie comparator used.- Returns:
True
if initial trie comparator used.
-
createCheckStateProvider
protected ICheckStateProvider createCheckStateProvider(NavigatorTreeModel navigatorTreeModel)
Creates check state provider for navigator tree model.- Parameters:
navigatorTreeModel
- - navigator tree model to create check state provider for. Cannot benull
.- Returns:
- check state provider. Cannot return
null
.
-
-