Class ListSelectionComponent<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,ISelectionListDialogParameterization>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionFromListDialogComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>>
-
- com._1c.g5.v8.dt.ui.aef.component.ListSelectionComponent<T>
-
- All Implemented Interfaces:
IComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>>
,IEventChannel
- Direct Known Subclasses:
ConfigurationRequiredMobileApplicationPermissionComponent
,ConfigurationUsePurposesComponent
public class ListSelectionComponent<T> extends AbstractSelectionFromListDialogComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>>
TheAbstractSelectionFromListDialogComponent
implementation forIList
.
-
-
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
Constructors Constructor Description ListSelectionComponent(ISelectionListDialogParameterization parameterization)
Creates a new component.ListSelectionComponent(String dialogTitle, boolean hasClearAction, boolean isBipartiteDialog)
Constructor wrapper withSelectionListDialogParameterization
parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object[]
getSelectedObjects(IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject> model)
Returns the selected objects for dialog init.protected void
onClearAction()
Invoked on the clear button action.protected void
setValueOnDialogResult(List<Object> result)
Sets theresult
objects obtained from dialog to component model.protected String
transformModelToString(IEmfListSelectionModel<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.AbstractSelectionFromListDialogComponent
createSelectionDialog
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionComponent
attachToModel, detachFromModel, getPresentationValue, onSelectAction
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractSelectionActionBarComponent
createButtons, handleButtonClicked
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtReadonlyActionBarComponent
bindModelToViewModel, createViewModels, disposeViewModels, updateViewModel, updateViewModels
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtActionBarComponent
createControlViewModel
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, dispose
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData
-
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, 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 Detail
-
ListSelectionComponent
public ListSelectionComponent(ISelectionListDialogParameterization parameterization)
Creates a new component.- Parameters:
parameterization
- the parameterization, cannot benull
-
ListSelectionComponent
public ListSelectionComponent(String dialogTitle, boolean hasClearAction, boolean isBipartiteDialog)
Constructor wrapper withSelectionListDialogParameterization
parameters.- Parameters:
dialogTitle
- Dialog title, cannot benull
hasClearAction
- Clear action flagisBipartiteDialog
- Bipartite dialog flag
-
-
Method Detail
-
getSelectedObjects
protected Object[] getSelectedObjects(IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject> model)
Description copied from class:AbstractSelectionComponent
Returns the selected objects for dialog init.- Specified by:
getSelectedObjects
in classAbstractSelectionComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>,ISelectionListDialogParameterization>
- Parameters:
model
- the model.- Returns:
- the selected objects.
-
setValueOnDialogResult
protected void setValueOnDialogResult(List<Object> result)
Description copied from class:AbstractSelectionComponent
Sets theresult
objects obtained from dialog to component model.- Specified by:
setValueOnDialogResult
in classAbstractSelectionComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>,ISelectionListDialogParameterization>
- Parameters:
result
- the dialog result.
-
onClearAction
protected void onClearAction()
Description copied from class:AbstractSelectionActionBarComponent
Invoked on the clear button action.- Specified by:
onClearAction
in classAbstractSelectionActionBarComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>,ISelectionListDialogParameterization>
-
transformModelToString
protected String transformModelToString(IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject> model)
Description copied from class:AbstractDtReadonlyActionBarComponent
Transforms the given model object to string representation.- Specified by:
transformModelToString
in classAbstractDtReadonlyActionBarComponent<IEmfListSelectionModel<T,? extends org.eclipse.emf.ecore.EObject>,ISelectionListDialogParameterization>
- Parameters:
model
- the model.- Returns:
- string representation of the model values.
-
-