Package com._1c.g5.v8.dt.ui.aef.models
Interface IGridModel<T>
- Type Parameters:
T
- the type of model objects.
- All Superinterfaces:
IEditableModel
,IModel
,IValidable
- All Known Subinterfaces:
IChartReferenceBandGridModel
,IChartReferenceLineGridModel
,ICommonPictureContentGridModel
,IFormChoiceListGridModel
,IFormMobileCommandsSetGridModel
,IGanttChartBackgroundIntervalsModel
,IGaugeChartQualityBandsGridModel
,IPlannerDimensionsModel
,ITimeScaleLabelsModel
,ITimeScaleLevelsModel
,ITrendlineArrayGridModel
- All Known Implementing Classes:
BmFormChoiceListGridModel
,BmFormMobileCommandsSetGridModel
,BmGanttChartBackgroundIntervalsModel
,ChartReferenceBandGridModel
,ChartReferenceLineGridModel
,CommonPictureContentGridModel
,DcsChartReferenceBandGridModel
,DcsChartReferenceLineGridModel
,GaugeChartQualityBandsGridModel
,PlannerDimensionsModel
,TimeScaleLabelsModel
,TimeScaleLevelsModel
,TrendlineArrayGridModel
The model for grid component.
-
Method Summary
Modifier and TypeMethodDescriptionT[]
getChildren
(T element) Returns the array of children for a givenelement
.T[]
Returns the array of top level objects.Returns the parent of the givenelement
.Returns the model of currently selected element in grid.boolean
hasChildren
(T element) Returnstrue
if the element has children.Methods inherited from interface com._1c.g5.aef2.models.IEditableModel
isEditable, setEditable
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Method Details
-
getElements
T[] getElements()Returns the array of top level objects.- Returns:
- the array of top level objects, never
null
.
-
getChildren
Returns the array of children for a givenelement
.- Parameters:
element
- the parent element, cannot benull
.- Returns:
- the array of children of the element, never
null
.
-
getParent
Returns the parent of the givenelement
.- Parameters:
element
- the element, cannot benull
.- Returns:
- the parent element or
null
.
-
hasChildren
Returnstrue
if the element has children.- Parameters:
element
- the element, cannot benull
.- Returns:
true
if the element has children.
-
getSelectedElementModel
Returns the model of currently selected element in grid.- Returns:
- the
IValue
instance, nevernull
.
-