Class GaugeChartQualityBandsGridModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.GaugeChartQualityBandsGridModel
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
,IGaugeChartQualityBandsGridModel
,IGridModel<GaugeChartQualityBand>
public class GaugeChartQualityBandsGridModel
extends EditableModel
implements IGaugeChartQualityBandsGridModel
Model for gauge chart quality bands in grid.
-
Constructor Summary
ConstructorsConstructorDescriptionGaugeChartQualityBandsGridModel
(IModelObjectFactory chartObjectsFactory, GaugeChartQualityBands bands, Version version, IColorProvider colorProvider, IEditingLanguageManager languageManager, IV8Project v8project, IModelEditingSupport modelEditingSupport, boolean isReadOnly) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionaddBand()
Creates new band and adds it to collection.void
dispose()
Disposes this model.getBackColorModel
(GaugeChartQualityBand element) Gets the back color model for given band.getBands()
Get the underlying band object.getBeginModel
(GaugeChartQualityBand element) Gets the begin value model for given band.getChildren
(GaugeChartQualityBand element) Returns the array of children for a givenelement
.Returns the array of top level objects.getEndModel
(GaugeChartQualityBand element) Gets the end value model for given band.Gets the language manager.Returns the model API.getParent
(GaugeChartQualityBand element) Returns the parent of the givenelement
.Gets the project.Returns the model of currently selected element in grid.getTextModel
(GaugeChartQualityBand element) Gets the text value model for given band.getTooltipModel
(GaugeChartQualityBand element) Gets the tooltip value model for given band.boolean
hasChildren
(GaugeChartQualityBand element) Returnstrue
if the element has children.boolean
Checks if this model is read only.void
Removes band from collection.void
setModelApi
(IModelApi modelApi) Sets the specified API to the model.boolean
Moves band down in collection if this possible.boolean
Moves band up in collection if this possible.Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
GaugeChartQualityBandsGridModel
public GaugeChartQualityBandsGridModel(IModelObjectFactory chartObjectsFactory, GaugeChartQualityBands bands, Version version, IColorProvider colorProvider, IEditingLanguageManager languageManager, IV8Project v8project, IModelEditingSupport modelEditingSupport, boolean isReadOnly) The constructor.- Parameters:
chartObjectsFactory
- the chart objects factory, cannot benull
.bands
- the bands object, cannot benull
.version
- the version, cannot benull
.colorProvider
- the color provider, cannot benull
.languageManager
- the language manager, cannot benull
.v8project
- the project, cannot benull
.modelEditingSupport
- the model editing support, cannot benull
.isReadOnly
- the 'read only' flag.
-
-
Method Details
-
addBand
Description copied from interface:IGaugeChartQualityBandsGridModel
Creates new band and adds it to collection.- Specified by:
addBand
in interfaceIGaugeChartQualityBandsGridModel
- Returns:
- The created band.
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
getBackColorModel
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the back color model for given band.- Specified by:
getBackColorModel
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
element
- the band, cannot benull
.- Returns:
- the model.
-
getBands
Description copied from interface:IGaugeChartQualityBandsGridModel
Get the underlying band object.- Specified by:
getBands
in interfaceIGaugeChartQualityBandsGridModel
- Returns:
- the bands.
-
getBeginModel
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the begin value model for given band.- Specified by:
getBeginModel
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
element
- the band, cannot benull
.- Returns:
- the model.
-
getChange
-
getChildren
Description copied from interface:IGridModel
Returns the array of children for a givenelement
.- Specified by:
getChildren
in interfaceIGridModel<GaugeChartQualityBand>
- Parameters:
element
- the parent element, cannot benull
.- Returns:
- the array of children of the element, never
null
.
-
getElements
Description copied from interface:IGridModel
Returns the array of top level objects.- Specified by:
getElements
in interfaceIGridModel<GaugeChartQualityBand>
- Returns:
- the array of top level objects, never
null
.
-
getEndModel
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the end value model for given band.- Specified by:
getEndModel
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
element
- the band, cannot benull
.- Returns:
- the model.
-
getLanguageManager
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the language manager.- Specified by:
getLanguageManager
in interfaceIGaugeChartQualityBandsGridModel
- Returns:
- The language manager, never
null
.
-
getParent
Description copied from interface:IGridModel
Returns the parent of the givenelement
.- Specified by:
getParent
in interfaceIGridModel<GaugeChartQualityBand>
- Parameters:
element
- the element, cannot benull
.- Returns:
- the parent element or
null
.
-
getProject
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the project.- Specified by:
getProject
in interfaceIGaugeChartQualityBandsGridModel
- Returns:
- The project, never
null
.
-
getSelectedElementModel
Description copied from interface:IGridModel
Returns the model of currently selected element in grid.- Specified by:
getSelectedElementModel
in interfaceIGridModel<GaugeChartQualityBand>
- Returns:
- the
IValue
instance, nevernull
.
-
getTextModel
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the text value model for given band.- Specified by:
getTextModel
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
element
- the band, cannot benull
.- Returns:
- the model.
-
getTooltipModel
Description copied from interface:IGaugeChartQualityBandsGridModel
Gets the tooltip value model for given band.- Specified by:
getTooltipModel
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
element
- the band, cannot benull
.- Returns:
- the model.
-
hasChildren
Description copied from interface:IGridModel
Returnstrue
if the element has children.- Specified by:
hasChildren
in interfaceIGridModel<GaugeChartQualityBand>
- Parameters:
element
- the element, cannot benull
.- Returns:
true
if the element has children.
-
removeBand
Description copied from interface:IGaugeChartQualityBandsGridModel
Removes band from collection.- Specified by:
removeBand
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
band
- The band for removal.
-
getModelApi
Description copied from interface:IModelApiAwareModel
Returns the model API.- Specified by:
getModelApi
in interfaceIModelApiAwareModel
- Returns:
- the model API or
null
if it is not set.
-
setModelApi
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
tryMoveBandDown
Description copied from interface:IGaugeChartQualityBandsGridModel
Moves band down in collection if this possible.- Specified by:
tryMoveBandDown
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
band
- The band for move.- Returns:
true
if movement was successful.
-
tryMoveBandUp
Description copied from interface:IGaugeChartQualityBandsGridModel
Moves band up in collection if this possible.- Specified by:
tryMoveBandUp
in interfaceIGaugeChartQualityBandsGridModel
- Parameters:
band
- The band for move.- Returns:
true
if movement was successful.
-
isReadOnly
public boolean isReadOnly()Description copied from interface:IGaugeChartQualityBandsGridModel
Checks if this model is read only.- Specified by:
isReadOnly
in interfaceIGaugeChartQualityBandsGridModel
- Returns:
true
if this model is read only.
-