Class FileSelectionComponent
- 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<IValue<T>,P>
-
- com._1c.g5.v8.dt.ui.aef.component.DtValueActionBarComponent<Path,IFileSelectionParameterization>
-
- com._1c.g5.v8.dt.ui.aef.component.FileSelectionComponent
-
- All Implemented Interfaces:
IComponent<IValue<Path>>,IEventChannel
public class FileSelectionComponent extends DtValueActionBarComponent<Path,IFileSelectionParameterization>
File selection component.
-
-
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 FileSelectionComponent(IFileSelectionParameterization parameterization)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<ButtonItemViewModel>createButtons()Creates a collection of theButtonItemViewModelthat will be added to the component view model.protected IMapper<Path,String>createMapper()Creates anIMapperinstance that maps the domain model objects to view model.voiddispose()Disposes this component, its view models and its child components.protected voidhandleButtonClicked(IViewModel viewModel)Handles the button clicked event.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.DtValueActionBarComponent
createControlViewModel
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
disposeViewModels, 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
-
FileSelectionComponent
public FileSelectionComponent(IFileSelectionParameterization parameterization)
Creates a new instance.- Parameters:
parameterization- the parameterization.
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IComponentDisposes this component, its view models and its child components.- Specified by:
disposein interfaceIComponent<IValue<Path>>- Overrides:
disposein classAbstractDtSelectComponent<IValue<Path>,IFileSelectionParameterization,ActionBarViewModel>
-
createButtons
protected Collection<ButtonItemViewModel> createButtons()
Description copied from class:AbstractDtSelectComponentCreates a collection of theButtonItemViewModelthat will be added to the component view model.- Overrides:
createButtonsin classAbstractDtSelectComponent<IValue<Path>,IFileSelectionParameterization,ActionBarViewModel>- Returns:
- the collection of the
ButtonItemViewModel.
-
handleButtonClicked
protected void handleButtonClicked(IViewModel viewModel)
Description copied from class:AbstractDtSelectComponentHandles the button clicked event.- Overrides:
handleButtonClickedin classAbstractDtSelectComponent<IValue<Path>,IFileSelectionParameterization,ActionBarViewModel>- Parameters:
viewModel- the view model of the event sender.
-
createMapper
protected IMapper<Path,String> createMapper()
Description copied from class:DtValueActionBarComponentCreates anIMapperinstance that maps the domain model objects to view model.- Overrides:
createMapperin classDtValueActionBarComponent<Path,IFileSelectionParameterization>- Returns:
- the
IMapper.
-
-