Class BmGanttChartTimeScaleLevelModel
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.BmGanttChartTimeScaleLevelModel
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
,IModelApiAwareModel
,IGanttChartTimeScaleLevelModel
public class BmGanttChartTimeScaleLevelModel
extends EditableModel
implements IGanttChartTimeScaleLevelModel
Component model for
TimeScaleLevel
element representation.
It just stores BmValue
models for every element's value.-
Constructor Summary
ConstructorsConstructorDescriptionBmGanttChartTimeScaleLevelModel
(TimeScale timeScale, IV8ProjectManager v8ProjectManager, IV8Project v8project, IEditingLanguageManager languageManager, IMdObjectByTypeProvider mdObjectByTypeProvider, IColorProvider colorProvider, IFontProvider fontProvider) Creates new model instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this model.Gets model for background color of a time scale.Gets model for time scale's line.Gets model that indicates current active time scale level.Gets model that indicates day format.Gets model for time scale level's format.Gets model for time scale's interval value.int
Returns count of existing time scale levels.Returns the model API.Gets model for the color of time scale lines.Gets model that indicates showing of periodical labels.Gets model for text color of a time scale.Gets model for time scale labels selection.Gets model that indicates time scale unit type.Gets model that indicates visibility of a time scale.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.models.EditableModel
isEditable
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
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
-
BmGanttChartTimeScaleLevelModel
public BmGanttChartTimeScaleLevelModel(TimeScale timeScale, IV8ProjectManager v8ProjectManager, IV8Project v8project, IEditingLanguageManager languageManager, IMdObjectByTypeProvider mdObjectByTypeProvider, IColorProvider colorProvider, IFontProvider fontProvider) Creates new model instance.- Parameters:
timeScale
- the parent time scale containing levels, cannot benull
v8ProjectManager
- the V8 project manager, cannot benull
v8project
- the V8 project, cannot benull
languageManager
- the language manager, cannot benull
mdObjectByTypeProvider
- the MD object by type provider, cannot benull
colorProvider
- the color provider, cannot benull
fontProvider
- the font 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. -
getLevelsCount
public int getLevelsCount()Description copied from interface:IGanttChartTimeScaleLevelModel
Returns count of existing time scale levels.- Specified by:
getLevelsCount
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- count of existing time scale levels
-
getCurrentLevelValue
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model that indicates current active time scale level.- Specified by:
getCurrentLevelValue
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getVisibilityValue
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model that indicates visibility of a time scale.- Specified by:
getVisibilityValue
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getShowPeriodicalLabelsValue
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model that indicates showing of periodical labels.- Specified by:
getShowPeriodicalLabelsValue
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getTimeUnitValue
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model that indicates time scale unit type.- Specified by:
getTimeUnitValue
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getIntervalValue
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for time scale's interval value.- Specified by:
getIntervalValue
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getDayFormatValue
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model that indicates day format.- Specified by:
getDayFormatValue
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getFormatModel
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for time scale level's format.- Specified by:
getFormatModel
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getChartLineModel
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for time scale's line.- Specified by:
getChartLineModel
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model
-
getScaleColorModel
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for the color of time scale lines.- Specified by:
getScaleColorModel
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getBackColorModel
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for background color of a time scale.- Specified by:
getBackColorModel
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getTextColorModel
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for text color of a time scale.- Specified by:
getTextColorModel
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getTimeScaleLabelSelectionModel
Description copied from interface:IGanttChartTimeScaleLevelModel
Gets model for time scale labels selection.- Specified by:
getTimeScaleLabelSelectionModel
in interfaceIGanttChartTimeScaleLevelModel
- Returns:
- the corresponding model, cannot be
null
-
getChange
-
setEditable
public void setEditable(boolean editable) Description copied from interface:IEditableModel
Sets model editable state.- Specified by:
setEditable
in interfaceIEditableModel
- Overrides:
setEditable
in classEditableModel
- Parameters:
editable
- the editable state,true
if this model is editable,false
otherwise
-