Package com._1c.g5.properties.ui
Class PropertyPaletteModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.properties.ui.PropertyPaletteModel
- All Implemented Interfaces:
IModel
,IManagingModel
,IValidable
- Direct Known Subclasses:
MdPropertyPaletteModel
Model for property palette.
See AEF2 faq for more info.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IStructuredSelection
adaptSelection
(ISelection selection) Adapts given selection toIStructuredSelection
.protected void
Clears model.Creates and returns a newly created rule input.Returns theIManagingDefinition
instance.Returns the collection of objects that is edited by the managing component.protected void
setDefinition
(IManagingDefinition definition) Sets model definition.void
setSelection
(ISelection selection) Sets model selection.Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, dispose, 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.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
PropertyPaletteModel
public PropertyPaletteModel()
-
-
Method Details
-
getChange
-
setSelection
Sets model selection.- Parameters:
selection
- - new selection. Can benull
.
-
getDefinition
Returns theIManagingDefinition
instance.- Specified by:
getDefinition
in interfaceIManagingModel
- Returns:
- the
IManagingDefinition
instance, nevernull
.
-
getObjects
Description copied from interface:IManagingModel
Returns the collection of objects that is edited by the managing component.- Specified by:
getObjects
in interfaceIManagingModel
- Returns:
- the collection of objects that is edited by the managing component, never
null
.
-
createRuleInput
Description copied from interface:IManagingModel
Creates and returns a newly created rule input.- Specified by:
createRuleInput
in interfaceIManagingModel
- Returns:
IRuleInput
instance, nevernull
.
-
setDefinition
Sets model definition.- Parameters:
definition
- - definition to set. Cannot benull
.- See Also:
-
clearModel
protected void clearModel()Clears model. -
adaptSelection
Adapts given selection toIStructuredSelection
.- Parameters:
selection
- - selection to adapt. Cannot benull
.- Returns:
- non empty
IStructuredSelection
. Can returnnull
.
-