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
,ITrendlineArrayGridModel
- All Known Implementing Classes:
CommonPictureContentGridModel
,DcsChartReferenceBandGridModel
,DcsChartReferenceLineGridModel
,TrendlineArrayGridModel
public interface IGridModel<T> extends IModel, IEditableModel
The model for grid component.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T[]
getChildren(T element)
Returns the array of children for a givenelement
.T[]
getElements()
Returns the array of top level objects.T
getParent(T element)
Returns the parent of the givenelement
.IValue<T>
getSelectedElementModel()
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 Detail
-
getElements
T[] getElements()
Returns the array of top level objects.- Returns:
- the array of top level objects, never
null
.
-
getChildren
T[] getChildren(T element)
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
T getParent(T element)
Returns the parent of the givenelement
.- Parameters:
element
- the element, cannot benull
.- Returns:
- the parent element or
null
.
-
hasChildren
boolean hasChildren(T element)
Returnstrue
if the element has children.- Parameters:
element
- the element, cannot benull
.- Returns:
true
if the element has children.
-
-