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.booleanhasChildren(T element) Returnstrueif the element has children.Methods inherited from interface com._1c.g5.aef2.models.IEditableModel
isEditable, setEditableMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponentMethods 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
Returnstrueif the element has children.- Parameters:
element- the element, cannot benull.- Returns:
trueif the element has children.
-
getSelectedElementModel
Returns the model of currently selected element in grid.- Returns:
- the
IValueinstance, nevernull.
-