Class ChartReferenceBandGridComponent
- 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<T,ME,M,VoidParameterization>
-
- com._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,ChartReferenceBand>
-
- com._1c.g5.v8.dt.form.ui.chart.aef.components.reference.ChartReferenceBandGridComponent
-
- All Implemented Interfaces:
IComponent<IChartReferenceBandGridModel>
,IEventChannel
- Direct Known Subclasses:
DcsChartReferenceBandGridComponent
public class ChartReferenceBandGridComponent extends com._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,ChartReferenceBand>
Grid component forChartReferenceBand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description ChartReferenceBandGridComponent(IChartReferenceParameterization referenceBandParameterization)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<GridColumnViewModel>
createColumnStructure()
Creates the grid column structure.protected IComponent<?>
createComponent(GridColumnViewModel column, IndexedChartReferenceBand element)
Creates cell editor component for the givencolumn
andelement
.protected MappingGridContentProvider<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel>
createContentProvider(IChartReferenceBandGridModel model)
Creates mapping content provider for grid input.void
dispose()
Disposes this component, its view models and its child components.protected int
getColumnsCount()
Returns grid columns count.protected int
getComponentIndex(int columnIndex, int rowIndex)
Returns index of component in given column and row.protected String
getLanguageCode()
Gets the language code.protected void
postProcessItem(ChartReferenceBandGridItem item)
Post process item after it fields was set.protected void
setEditingContextTo(Object model)
Sets the editing context to model.-
Methods inherited from class com._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent
createColorComponent, createEditableCombo, createEnumComponent, createEquationAreaComponent, createLineStyleComponent, createSpinnerComponent, createTextComponent, createValueComponent, getDialogType, newColumn
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractGridComponent
createColumn, createColumn, createControlViewModel, createGridInput, disposeViewModels, getItemByModelElement, getModelElementByItem, handleCellDisposalEvent, handleCheckBoxCellEvent, 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, 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
-
ChartReferenceBandGridComponent
public ChartReferenceBandGridComponent(IChartReferenceParameterization referenceBandParameterization)
The constructor.- Parameters:
referenceBandParameterization
- chart reference band dialog parameterization, cannot benull
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<IChartReferenceBandGridModel>
- Overrides:
dispose
in classAbstractGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,VoidParameterization>
-
createComponent
protected IComponent<?> createComponent(GridColumnViewModel column, IndexedChartReferenceBand element)
Description copied from class:AbstractGridComponent
Creates cell editor component for the givencolumn
andelement
.- Specified by:
createComponent
in classAbstractGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,VoidParameterization>
- Parameters:
column
- the column view model that represents the grid column, cannot benull
.element
- the model element, cannot benull
.- Returns:
- cell editor component.
-
createContentProvider
protected MappingGridContentProvider<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel> createContentProvider(IChartReferenceBandGridModel model)
Description copied from class:AbstractGridComponent
Creates mapping content provider for grid input.- Specified by:
createContentProvider
in classAbstractGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,VoidParameterization>
- Parameters:
model
- the model, cannot benull
.- Returns:
- mapping content provider.
-
createColumnStructure
protected Collection<GridColumnViewModel> createColumnStructure()
Description copied from class:AbstractGridComponent
Creates the grid column structure.- Specified by:
createColumnStructure
in classAbstractGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,VoidParameterization>
- Returns:
- the columns, never
null
.
-
getColumnsCount
protected int getColumnsCount()
Returns grid columns count.- Returns:
- grid columns count.
-
getComponentIndex
protected int getComponentIndex(int columnIndex, int rowIndex)
Returns index of component in given column and row.- Parameters:
columnIndex
- - column index.rowIndex
- - row index.- Returns:
- index of component in given column and row.
-
postProcessItem
protected void postProcessItem(ChartReferenceBandGridItem item)
Post process item after it fields was set.- Parameters:
item
- - item to process. Cannot benull
.
-
getLanguageCode
protected String getLanguageCode()
Description copied from class:com._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent
Gets the language code.- Specified by:
getLanguageCode
in classcom._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,ChartReferenceBand>
- Returns:
- the language code, can be
null
-
setEditingContextTo
protected void setEditingContextTo(Object model)
Description copied from class:com._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent
Sets the editing context to model.- Specified by:
setEditingContextTo
in classcom._1c.g5.v8.dt.form.ui.internal.chart.aef.components.reference.AbstractChartReferenceGridComponent<ChartReferenceBandGridItem,IndexedChartReferenceBand,IChartReferenceBandGridModel,ChartReferenceBand>
- Parameters:
model
- the model for editing context, cannot benull
-
-