Class CommonPictureEntriesGridComponent
- 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,GridViewModel>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.commonpicture.grid.CommonPictureEntriesGridComponent
-
- All Implemented Interfaces:
IComponent<ICommonPictureContentGridModel>
,IEventChannel
public class CommonPictureEntriesGridComponent extends AbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
Grid component for Common picture zip-based entries
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description CommonPictureEntriesGridComponent()
Create instance ofCommonPictureEntriesGridComponent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GridColumnViewModel
createColumn(String header, Consumer<GridColumnViewModel> initializer)
Creates a new grid column view model with the givenheader
and initializes it using the specifiedinitializer
.
Also it automatically assigns index to column.
NOTE: the column index will be assigned in accordance with'createColumn'
invocation serial number.protected Collection<GridColumnViewModel>
createColumnStructure()
Creates the grid column structure.protected IComponent<?>
createComponent(GridColumnViewModel column, ZipPictureManifestEntry entry)
Creates cell editor component for the givencolumn
andelement
.protected MappingGridContentProvider<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel>
createContentProvider(ICommonPictureContentGridModel model)
Creates mapping content provider for grid input.protected void
disposeComponents()
Disposes the child components.protected void
handleCheckBoxCellEvent(GridCheckboxCellEvent event)
Handles checkbox cell event.boolean
isEnabled()
returntrue
if the component is in enabled state andfalse
otherwise.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractGridComponent
createColumn, createControlViewModel, createGridInput, dispose, disposeViewModels, getItemByModelElement, getModelElementByItem, handleCellDisposalEvent, refreshGrid, refreshGridItem
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, 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, 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
-
CommonPictureEntriesGridComponent
public CommonPictureEntriesGridComponent()
Create instance ofCommonPictureEntriesGridComponent
-
-
Method Detail
-
createComponent
protected IComponent<?> createComponent(GridColumnViewModel column, ZipPictureManifestEntry entry)
Description copied from class:AbstractGridComponent
Creates cell editor component for the givencolumn
andelement
.- Specified by:
createComponent
in classAbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
- Parameters:
column
- the column view model that represents the grid column, cannot benull
.entry
- the model element, cannot benull
.- Returns:
- cell editor component.
-
createColumnStructure
protected Collection<GridColumnViewModel> createColumnStructure()
Description copied from class:AbstractGridComponent
Creates the grid column structure.- Specified by:
createColumnStructure
in classAbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
- Returns:
- the columns, never
null
.
-
createColumn
protected GridColumnViewModel createColumn(String header, Consumer<GridColumnViewModel> initializer)
Description copied from class:AbstractGridComponent
Creates a new grid column view model with the givenheader
and initializes it using the specifiedinitializer
.
Also it automatically assigns index to column.
NOTE: the column index will be assigned in accordance with'createColumn'
invocation serial number. Please note this fact duringAbstractGridComponent.createComponent(GridColumnViewModel, Object)
implementationThe created column fields is filled withtin
initializer
.- Overrides:
createColumn
in classAbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
- Parameters:
header
- the header of the column, cannot benull
.initializer
- the column initializer.- Returns:
- a newly created column.
-
disposeComponents
protected void disposeComponents()
Description copied from class:Component
Disposes the child components. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeComponents
in classComponent<ICommonPictureContentGridModel,IParameterization>
-
createContentProvider
protected MappingGridContentProvider<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel> createContentProvider(ICommonPictureContentGridModel model)
Description copied from class:AbstractGridComponent
Creates mapping content provider for grid input.- Specified by:
createContentProvider
in classAbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
- Parameters:
model
- the model, cannot benull
.- Returns:
- mapping content provider.
-
handleCheckBoxCellEvent
protected void handleCheckBoxCellEvent(GridCheckboxCellEvent event)
Description copied from class:AbstractGridComponent
Handles checkbox cell event.- Overrides:
handleCheckBoxCellEvent
in classAbstractGridComponent<CommonPictureContentGridItemViewModel,ZipPictureManifestEntry,ICommonPictureContentGridModel,IParameterization>
- Parameters:
event
- the event, cannot benull
.
-
isEnabled
public boolean isEnabled()
Description copied from class:StandardComponent
returntrue
if the component is in enabled state andfalse
otherwise. Children of disabled standard components are considered disabled unconditionally, regardless of theenabled
flag.- Overrides:
isEnabled
in classStandardComponent<ICommonPictureContentGridModel,IParameterization>
-
-