Class BmFormChoiceListGridModel
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.internal.ui.properties.models.BmFormChoiceListGridModel
- All Implemented Interfaces:
IEditableModel
,IModel
,IValidable
,IFormChoiceListGridModel
,IGridModel<FormChoiceListDesTimeValue>
The implementation of the
IFormChoiceListGridModel
.-
Constructor Summary
ConstructorsConstructorDescriptionBmFormChoiceListGridModel
(IList<FormChoiceListDesTimeValue> choiceListModel, TypeDescription typeDescription, Form form, IV8Project project, IEditingLanguageManager editingLanguageManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNew()
Adds new choice list item.void
clone
(FormChoiceListDesTimeValue choiceListItem) Clones the specifiedChoiceListItem
.void
dispose()
Disposes this model.void
fill()
Fills the model automatically based on type.getChildren
(FormChoiceListDesTimeValue element) Returns the array of children for a givenelement
.Returns the original choice list model.Returns the editing language manager.Returns the array of top level objects.getForm()
Returns the form object.getParent
(FormChoiceListDesTimeValue element) Returns the parent of the givenelement
.Returns the model of currently selected element in grid.Returns the type description.Returns the project.boolean
hasChildren
(FormChoiceListDesTimeValue element) Returnstrue
if the element has children.boolean
Returnstrue
if 'fill' is available for the model.void
moveDown
(FormChoiceListDesTimeValue choiceListItem) Moves down the specifiedChoiceListItem
.void
moveUp
(FormChoiceListDesTimeValue choiceListItem) Moves up the specifiedChoiceListItem
.void
remove
(FormChoiceListDesTimeValue choiceListItem) Removes the specifiedChoiceListItem
.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
-
BmFormChoiceListGridModel
public BmFormChoiceListGridModel(IList<FormChoiceListDesTimeValue> choiceListModel, TypeDescription typeDescription, Form form, IV8Project project, IEditingLanguageManager editingLanguageManager) Creates a new instance.- Parameters:
choiceListModel
- the original choice list model, cannot benull
.typeDescription
- the type description, cannot benull
.form
- the form, cannot benull
.project
- the project, cannot benull
.editingLanguageManager
- the editing language manager, cannot benull
.
-
-
Method Details
-
getElements
Description copied from interface:IGridModel
Returns the array of top level objects.- Specified by:
getElements
in interfaceIGridModel<FormChoiceListDesTimeValue>
- Returns:
- the array of top level objects, never
null
.
-
getChildren
Description copied from interface:IGridModel
Returns the array of children for a givenelement
.- Specified by:
getChildren
in interfaceIGridModel<FormChoiceListDesTimeValue>
- Parameters:
element
- the parent element, cannot benull
.- Returns:
- the array of children of the element, never
null
.
-
getParent
Description copied from interface:IGridModel
Returns the parent of the givenelement
.- Specified by:
getParent
in interfaceIGridModel<FormChoiceListDesTimeValue>
- Parameters:
element
- the element, cannot benull
.- Returns:
- the parent element or
null
.
-
hasChildren
Description copied from interface:IGridModel
Returnstrue
if the element has children.- Specified by:
hasChildren
in interfaceIGridModel<FormChoiceListDesTimeValue>
- Parameters:
element
- the element, cannot benull
.- Returns:
true
if the element has children.
-
getSelectedElementModel
Description copied from interface:IGridModel
Returns the model of currently selected element in grid.- Specified by:
getSelectedElementModel
in interfaceIGridModel<FormChoiceListDesTimeValue>
- Returns:
- the
IValue
instance, nevernull
.
-
getChange
-
getChoiceListModel
Description copied from interface:IFormChoiceListGridModel
Returns the original choice list model.- Specified by:
getChoiceListModel
in interfaceIFormChoiceListGridModel
- Returns:
- the original choice list model, never
null
.
-
addNew
public void addNew()Description copied from interface:IFormChoiceListGridModel
Adds new choice list item.- Specified by:
addNew
in interfaceIFormChoiceListGridModel
-
clone
Description copied from interface:IFormChoiceListGridModel
Clones the specifiedChoiceListItem
.- Specified by:
clone
in interfaceIFormChoiceListGridModel
- Parameters:
choiceListItem
- the choice list item to clone, cannot benull
.
-
remove
Description copied from interface:IFormChoiceListGridModel
Removes the specifiedChoiceListItem
.- Specified by:
remove
in interfaceIFormChoiceListGridModel
- Parameters:
choiceListItem
- the choice list item to remove, cannot benull
.
-
moveUp
Description copied from interface:IFormChoiceListGridModel
Moves up the specifiedChoiceListItem
.- Specified by:
moveUp
in interfaceIFormChoiceListGridModel
- Parameters:
choiceListItem
- the choice list item to move, cannot benull
.
-
moveDown
Description copied from interface:IFormChoiceListGridModel
Moves down the specifiedChoiceListItem
.- Specified by:
moveDown
in interfaceIFormChoiceListGridModel
- Parameters:
choiceListItem
- the choice list item to move, cannot benull
.
-
isFillAvailable
public boolean isFillAvailable()Description copied from interface:IFormChoiceListGridModel
Returnstrue
if 'fill' is available for the model.- Specified by:
isFillAvailable
in interfaceIFormChoiceListGridModel
- Returns:
true
if 'fill' is available for the model.
-
fill
public void fill()Description copied from interface:IFormChoiceListGridModel
Fills the model automatically based on type.- Specified by:
fill
in interfaceIFormChoiceListGridModel
-
getTypeDescription
Description copied from interface:IFormChoiceListGridModel
Returns the type description.- Specified by:
getTypeDescription
in interfaceIFormChoiceListGridModel
- Returns:
- the type description, never
null
.
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
getV8Project
Description copied from interface:IFormChoiceListGridModel
Returns the project.- Specified by:
getV8Project
in interfaceIFormChoiceListGridModel
- Returns:
- the project, never
null
.
-
getEditingLanguageManager
Description copied from interface:IFormChoiceListGridModel
Returns the editing language manager.- Specified by:
getEditingLanguageManager
in interfaceIFormChoiceListGridModel
- Returns:
- the editing language manager, never
null
.
-
getForm
Description copied from interface:IFormChoiceListGridModel
Returns the form object.- Specified by:
getForm
in interfaceIFormChoiceListGridModel
- Returns:
- the form object, never
null
.
-