Class NavigatorTreeComponent
- java.lang.Object
-
- com._1c.g5.aef2.components.Component<M,P>
-
- com._1c.g5.aef2.standard.components.StandardComponent<M,P>
-
- com._1c.g5.aef2.standard.components.AbstractControlComponent<M,P,VM>
-
- com._1c.g5.v8.dt.ui.aef.component.DtDynamicTreeComponent<Object,NavigatorTreeModel,TreeViewModel,ITreeParameterization>
-
- com._1c.g5.v8.dt.ui.aef.component.NavigatorTreeComponent
-
- All Implemented Interfaces:
IComponent<NavigatorTreeModel>
,IEventChannel
,ComponentSearch.IIdentifierHost
,ILabelProviderListener
- Direct Known Subclasses:
CommonAttributeContentTreeComponent
,ConfigurationStandaloneContentComponent
,DocumentEditorPostingPageComponent
,ExchangePlanContentComponent
,StandardObjectsTreeComponent
public class NavigatorTreeComponent extends DtDynamicTreeComponent<Object,NavigatorTreeModel,TreeViewModel,ITreeParameterization> implements ComponentSearch.IIdentifierHost
Tree component for navigator objects. The component works withNavigatorTreeModel
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
NavigatorTreeComponent.NavigatorMapper
Mapper for the navigator content.-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.component.DtDynamicTreeComponent
active, currentSelection
-
-
Constructor Summary
Constructors Constructor Description NavigatorTreeComponent(ITreeParameterization parameterization)
Creates new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IViewModelsMapper<Object,TreeItemViewModel>
createTreeMapper()
Gets or createsIMapper
instance.void
dispose()
Disposes this component, its view models and its child components.IComponent<?>
getComponent(Object id)
Returns a component with the specified identifier ornull
if no component with such identifier is known to the host.Object
getId(IComponent<?> component)
Returns an identifier for the specified component ornull
if not applicableprotected void
processEvent(IEvent event)
Processes the received event from component.protected void
trackObjectFeatureChanges(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
Tracks changes of the specifiedfeature
of the givenobject
.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.DtDynamicTreeComponent
createContentProvider, createControlViewModel, createTreeViewModel, disposeViewModels, getContentProvider, getMapper, labelProviderChanged, processDoubleClickEvent, setMulti, setSelection
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
addComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, disposeComponents, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
-
-
-
Constructor Detail
-
NavigatorTreeComponent
public NavigatorTreeComponent(ITreeParameterization parameterization)
Creates new component.- Parameters:
parameterization
- the parameterization, cannot benull
-
-
Method Detail
-
getComponent
public IComponent<?> getComponent(Object id)
Description copied from interface:ComponentSearch.IIdentifierHost
Returns a component with the specified identifier ornull
if no component with such identifier is known to the host.- Specified by:
getComponent
in interfaceComponentSearch.IIdentifierHost
- Parameters:
id
- the identifier- Returns:
- a component with the specified identifier or
null
if not found
-
getId
public Object getId(IComponent<?> component)
Description copied from interface:ComponentSearch.IIdentifierHost
Returns an identifier for the specified component ornull
if not applicable- Specified by:
getId
in interfaceComponentSearch.IIdentifierHost
- Parameters:
component
- the component to obtain the identifier for- Returns:
- an identifier for the specified component or
null
if not applicable
-
dispose
public void dispose()
Description copied from interface:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<NavigatorTreeModel>
- Overrides:
dispose
in classDtDynamicTreeComponent<Object,NavigatorTreeModel,TreeViewModel,ITreeParameterization>
-
processEvent
protected void processEvent(IEvent event)
Description copied from class:DtDynamicTreeComponent
Processes the received event from component.- Specified by:
processEvent
in classDtDynamicTreeComponent<Object,NavigatorTreeModel,TreeViewModel,ITreeParameterization>
- Parameters:
event
- the event
-
createTreeMapper
protected IViewModelsMapper<Object,TreeItemViewModel> createTreeMapper()
Description copied from class:DtDynamicTreeComponent
Gets or createsIMapper
instance.- Overrides:
createTreeMapper
in classDtDynamicTreeComponent<Object,NavigatorTreeModel,TreeViewModel,ITreeParameterization>
- Returns:
- the newly created mapper, cannot be
null
-
trackObjectFeatureChanges
protected final void trackObjectFeatureChanges(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
Tracks changes of the specifiedfeature
of the givenobject
. When changes are found the tree would be refreshed.- Parameters:
object
- the object to track changes, cannot benull
.feature
- the feature to track, cannot benull
.
-
-