Class BmChartPointModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.standard.definitions.models.AbstractDefinitionModel
com._1c.g5.v8.dt.form.ui.internal.chart.aef.models.BmChartPointModel
- All Implemented Interfaces:
ICompoundModel
,IEditableModel
,IModel
,IDefinitionModel
,IValidable
,IModelApiAwareModel
,IChartPointModel
Component model for
PointProperties
collection of given Chart
.-
Constructor Summary
ConstructorsConstructorDescriptionBmChartPointModel
(Chart chart, org.eclipse.core.resources.IProject project, IEditingLanguageManager languageProvider) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this model.Gets the current point value.Returns the container definition.Returns the model API.Returns the collection of editing objects.int
Gets the point count.Gets the point names.boolean
Checks if this model is editable.void
setEditable
(boolean editable) Sets model editable state.void
setModelApi
(IModelApi modelApi) Sets the specified API to the model.Methods inherited from class com._1c.g5.aef2.standard.definitions.models.AbstractDefinitionModel
addModel, addRuleResultListener, getChange, getModels, getRuleResult, getRuleResultProcessor, handleRuleResultChanged, removeModel, removeRuleResultListener, setRuleResult, setRuleResultProcessor, toString
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
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.ICompoundModel
getModels
Methods inherited from interface com._1c.g5.aef2.standard.definitions.models.IDefinitionModel
addModel, addRuleResultListener, getRuleResult, getRuleResultProcessor, removeModel, removeRuleResultListener, setRuleResult, setRuleResultProcessor
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, getChange, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
BmChartPointModel
public BmChartPointModel(Chart chart, org.eclipse.core.resources.IProject project, IEditingLanguageManager languageProvider) The constructor.- Parameters:
chart
- The chart which owns the point, cannot benull
.project
- The project, cannot benull
.languageProvider
- The language provider, cannot benull
.
-
-
Method Details
-
setModelApi
Description copied from interface:IModelApiAwareModel
Sets the specified API to the model.- Specified by:
setModelApi
in interfaceIModelApiAwareModel
- Parameters:
modelApi
- the API, can benull
.
-
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.
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model.- Specified by:
dispose
in interfaceIModel
- Overrides:
dispose
in classAbstractDefinitionModel
-
getCurrentPointValue
Gets the current point value.- Specified by:
getCurrentPointValue
in interfaceIChartPointModel
- Returns:
- The current point value model.
-
getObjects
Description copied from interface:IDefinitionModel
Returns the collection of editing objects.- Specified by:
getObjects
in interfaceIDefinitionModel
- Returns:
- the collection, never
null
.
-
getDefinition
Description copied from interface:IDefinitionModel
Returns the container definition.- Specified by:
getDefinition
in interfaceIDefinitionModel
- Returns:
- the container definition, can be
null
.
-
getPointCount
public int getPointCount()Gets the point count.- Specified by:
getPointCount
in interfaceIChartPointModel
- Returns:
- The point count.
-
getPointNames
Description copied from interface:IChartPointModel
Gets the point names.- Specified by:
getPointNames
in interfaceIChartPointModel
- Returns:
- The list of point names.
-
isEditable
public boolean isEditable()Description copied from interface:IEditableModel
Checks if this model is editable.- Specified by:
isEditable
in interfaceIEditableModel
- Returns:
true
if this model is editable,false
otherwise
-
setEditable
public void setEditable(boolean editable) Description copied from interface:IEditableModel
Sets model editable state.- Specified by:
setEditable
in interfaceIEditableModel
- Parameters:
editable
- the editable state,true
if this model is editable,false
otherwise
-