Class TreeToSingleItemSelectionComponent<T>
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.AbstractDtSelectComponent<M,P,ActionBarViewModel>
com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent<M,P>
com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent<M,P>
com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionActionBarComponent<M,P>
com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionComponent<M,ISelectionTreeDialogParameterization>
com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionFromTreeDialogComponent<IEmfTreeToSingleItemSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>>
com._1c.g5.v8.dt.ui.aef.component.TreeToSingleItemSelectionComponent<T>
- All Implemented Interfaces:
IComponent<IEmfTreeToSingleItemSelectionModel<T,,? extends org.eclipse.emf.ecore.EObject>> IEventChannel
- Direct Known Subclasses:
AdditionSourceSelectionComponent,MainTableTreeToSingleItemSelectionComponent,PackageTreeToSingleItemSelectionComponent
public class TreeToSingleItemSelectionComponent<T>
extends AbstractSelectionFromTreeDialogComponent<IEmfTreeToSingleItemSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>>
The
AbstractSelectionFromTreeDialogComponent implementation for IValue.-
Nested Class Summary
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.AbstractDtSelectComponent
CLEAR_BUTTON_COMMAND_ID, DEFAULT_CONTEXT, OPEN_BUTTON_COMMAND_ID, SELECT_BUTTON_COMMAND_ID -
Constructor Summary
ConstructorsConstructorDescriptionTreeToSingleItemSelectionComponent(ISelectionTreeDialogParameterization parameterization) Creates a new component. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]getSelectedObjects(IEmfTreeToSingleItemSelectionModel<T, ? extends org.eclipse.emf.ecore.EObject> model) Returns the selected objects for dialog init.protected voidInvoked on the clear button action.protected voidsetValueOnDialogResult(List<Object> result) Sets theresultobjects obtained from dialog to component model.protected StringtransformModelToString(IEmfTreeToSingleItemSelectionModel<T, ? extends org.eclipse.emf.ecore.EObject> model) Transforms the given model object to string representation.Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionFromTreeDialogComponent
createSelectionDialogMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionComponent
attachToModel, detachFromModel, getPresentationValue, onSelectActionMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionActionBarComponent
createButtons, handleButtonClickedMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent
bindModelToViewModel, createViewModels, disposeViewModels, updateViewModel, updateViewModelsMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent
createControlViewModelMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, disposeMethods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutDataMethods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatusMethods inherited from class com._1c.g5.aef2.components.Component
addComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, 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 Details
-
TreeToSingleItemSelectionComponent
Creates a new component.- Parameters:
parameterization- the parameterization.
-
-
Method Details
-
getSelectedObjects
protected Object[] getSelectedObjects(IEmfTreeToSingleItemSelectionModel<T, ? extends org.eclipse.emf.ecore.EObject> model) Description copied from class:AbstractSelectionComponentReturns the selected objects for dialog init.- Specified by:
getSelectedObjectsin classAbstractSelectionComponent<IEmfTreeToSingleItemSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>, ISelectionTreeDialogParameterization> - Parameters:
model- the model.- Returns:
- the selected objects.
-
setValueOnDialogResult
Description copied from class:AbstractSelectionComponentSets theresultobjects obtained from dialog to component model.- Specified by:
setValueOnDialogResultin classAbstractSelectionComponent<IEmfTreeToSingleItemSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>, ISelectionTreeDialogParameterization> - Parameters:
result- the dialog result.
-
onClearAction
protected void onClearAction()Description copied from class:AbstractSelectionActionBarComponentInvoked on the clear button action.- Specified by:
onClearActionin classAbstractSelectionActionBarComponent<IEmfTreeToSingleItemSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>, ISelectionTreeDialogParameterization>
-
transformModelToString
protected String transformModelToString(IEmfTreeToSingleItemSelectionModel<T, ? extends org.eclipse.emf.ecore.EObject> model) Description copied from class:AbstractDtReadonlyActionBarComponentTransforms the given model object to string representation.- Specified by:
transformModelToStringin classAbstractDtReadonlyActionBarComponent<IEmfTreeToSingleItemSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>, ISelectionTreeDialogParameterization> - Parameters:
model- the model.- Returns:
- string representation of the model values.
-