Class AbstractDtActionBarHandlerSelectComponent<M extends IBaseBmHandlerNameModel,P extends IDtActionBarParameterization>
- 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.md.ui.aef.components.AbstractDtActionBarHandlerSelectComponent<M,P>
-
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
EventSubscriptionHandlerSelectComponent
,ScheduledJobMethodNameComponent
public abstract class AbstractDtActionBarHandlerSelectComponent<M extends IBaseBmHandlerNameModel,P extends IDtActionBarParameterization> extends AbstractDtActionBarComponent<M,P>
AbstractDtActionBarComponent
implementation for handle selection component. Can create/select/edit handle to method of common module
-
-
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 Modifier Constructor Description protected
AbstractDtActionBarHandlerSelectComponent(P parameterization)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Collection<ButtonItemViewModel>
createButtons()
Creates a collection of theButtonItemViewModel
that will be added to the component view model.protected ActionBarViewModel
createControlViewModel()
Creates control view model instance.void
dispose()
Disposes this component, its view models and its child components.protected abstract String
genarateNewHandlerText(String methodName)
Generate new handler body text.protected abstract String
generateNewHandlerName()
Generate new handler name.protected void
handleButtonClicked(IViewModel viewModel)
Handles the button clicked event.protected void
handleOpenButton(IViewModel viewModel)
Handle of open button click event.protected void
handleSelectButton(IViewModel viewModel)
Handle of select button click event.protected com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject>
selectMethodsPredicate()
Predicate for filtering methods for selection dialog-
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
-
AbstractDtActionBarHandlerSelectComponent
protected AbstractDtActionBarHandlerSelectComponent(P parameterization)
Creates a new instance.- Parameters:
parameterization
- the parameterization.
-
-
Method Detail
-
createControlViewModel
protected ActionBarViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Overrides:
createControlViewModel
in classAbstractDtActionBarComponent<M extends IBaseBmHandlerNameModel,P extends IDtActionBarParameterization>
- Returns:
- a newly created control view model.
-
dispose
public void dispose()
Description copied from interface:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<M extends IBaseBmHandlerNameModel>
- Overrides:
dispose
in classAbstractDtSelectComponent<M extends IBaseBmHandlerNameModel,P extends IDtActionBarParameterization,ActionBarViewModel>
-
createButtons
protected Collection<ButtonItemViewModel> createButtons()
Description copied from class:AbstractDtSelectComponent
Creates a collection of theButtonItemViewModel
that will be added to the component view model.- Overrides:
createButtons
in classAbstractDtSelectComponent<M extends IBaseBmHandlerNameModel,P extends IDtActionBarParameterization,ActionBarViewModel>
- Returns:
- the collection of the
ButtonItemViewModel
.
-
handleButtonClicked
protected void handleButtonClicked(IViewModel viewModel)
Description copied from class:AbstractDtSelectComponent
Handles the button clicked event.- Overrides:
handleButtonClicked
in classAbstractDtSelectComponent<M extends IBaseBmHandlerNameModel,P extends IDtActionBarParameterization,ActionBarViewModel>
- Parameters:
viewModel
- the view model of the event sender.
-
handleSelectButton
protected void handleSelectButton(IViewModel viewModel)
Handle of select button click event.- Parameters:
viewModel
- the view model of the event sender.
-
selectMethodsPredicate
protected com.google.common.base.Predicate<org.eclipse.emf.ecore.EObject> selectMethodsPredicate()
Predicate for filtering methods for selection dialogAlways
true
by default- Returns:
- the predicate impl for filtering methods, never
null
-
handleOpenButton
protected void handleOpenButton(IViewModel viewModel)
Handle of open button click event.- Parameters:
viewModel
- the view model of the event sender.
-
genarateNewHandlerText
protected abstract String genarateNewHandlerText(String methodName)
Generate new handler body text.- Parameters:
methodName
- the new handler name, cannot benull
- Returns:
- handler body text, never
null
-
generateNewHandlerName
protected abstract String generateNewHandlerName()
Generate new handler name.- Returns:
- handler name, never
null
-
-