Class DtDateComponent
- 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<IValue<Date>,IDtDateParameterization,DateControlViewModel>
-
- com._1c.g5.v8.dt.ui.aef.component.DtDateComponent
-
- All Implemented Interfaces:
IComponent<IValue<Date>>,IEventChannel
public class DtDateComponent extends AbstractDtSelectComponent<IValue<Date>,IDtDateParameterization,DateControlViewModel>
The component that operates with the date in given.
-
-
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 DtDateComponent(IDtDateParameterization parameterization)Create instance ofDtDateComponent
-
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 DateControlViewModelcreateControlViewModel()Creates control view model instance.protected IMapper<Date,?>createMapper(DateControlViewModel viewModel, IValue<Date> model)Creates aIMapperinstance that maps the model objects to the item view model objects.protected voidhandleButtonClicked(IViewModel viewModel)Handles the button clicked event.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels, dispose
-
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
-
DtDateComponent
public DtDateComponent(IDtDateParameterization parameterization)
Create instance ofDtDateComponent- Parameters:
parameterization- the parameterization.
-
-
Method Detail
-
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<Date>,IDtDateParameterization,DateControlViewModel>- 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<Date>,IDtDateParameterization,DateControlViewModel>- Parameters:
viewModel- the view model of the event sender.
-
createControlViewModel
protected DateControlViewModel createControlViewModel()
Description copied from class:AbstractControlComponentCreates control view model instance.- Specified by:
createControlViewModelin classAbstractControlComponent<IValue<Date>,IDtDateParameterization,DateControlViewModel>- Returns:
- a newly created control view model.
-
-