Class TrendlineArrayGridModel

    • Constructor Detail

      • TrendlineArrayGridModel

        public TrendlineArrayGridModel​(IModelObjectFactory chartObjectsFactory,
                                       IColorProvider colorProvider,
                                       IFontProvider fontProvider,
                                       IBorderProvider borderProvider,
                                       IEditingLanguageManager languageManager,
                                       IModelEditingSupport modelEditingSupport,
                                       TrendlineArray trendlineArray,
                                       IV8Project v8project,
                                       Version version)
        The constructor.
        Parameters:
        chartObjectsFactory - The chart objects factory, cannot be null.
        colorProvider - The color provider, cannot be null.
        fontProvider - The font provider, cannot be null.
        borderProvider - The border provider, cannot be null.
        languageManager - The language manager, cannot be null.
        modelEditingSupport - The model editing support, cannot be null.
        trendlineArray - The modelled trendline array, cannot be null.
        v8project - The project, cannot be null.
        version - The version, cannot be null.
    • Method Detail

      • dispose

        public void dispose()
        Description copied from interface: IModel
        Disposes this model.
        Specified by:
        dispose in interface IModel
        Overrides:
        dispose in class Model
      • getChange

        public IChange getChange()
        Specified by:
        getChange in interface IModel
        Returns:
        change describing the modifications done to the model.
      • getChildren

        public com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline[] getChildren​(com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline element)
        Description copied from interface: IGridModel
        Returns the array of children for a given element.
        Specified by:
        getChildren in interface IGridModel<com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline>
        Parameters:
        element - the parent element, cannot be null.
        Returns:
        the array of children of the element, never null.
      • getElements

        public com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline[] getElements()
        Description copied from interface: IGridModel
        Returns the array of top level objects.
        Specified by:
        getElements in interface IGridModel<com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline>
        Returns:
        the array of top level objects, never null.
      • getParent

        public com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline getParent​(com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline element)
        Description copied from interface: IGridModel
        Returns the parent of the given element.
        Specified by:
        getParent in interface IGridModel<com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline>
        Parameters:
        element - the element, cannot be null.
        Returns:
        the parent element or null.
      • getSelectedElementModel

        public IValue<com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline> getSelectedElementModel()
        Description copied from interface: IGridModel
        Returns the model of currently selected element in grid.
        Specified by:
        getSelectedElementModel in interface IGridModel<com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline>
        Returns:
        the IValue instance, never null.
      • hasChildren

        public boolean hasChildren​(com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline element)
        Description copied from interface: IGridModel
        Returns true if the element has children.
        Specified by:
        hasChildren in interface IGridModel<com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.trendline.IndexedTrendline>
        Parameters:
        element - the element, cannot be null.
        Returns:
        true if the element has children.