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 IStructuredSelectionadaptSelection(ISelection selection) Adapts given selection toIStructuredSelection.protected voidClears model.Creates and returns a newly created rule input.Returns theIManagingDefinitioninstance.Returns the collection of objects that is edited by the managing component.protected voidsetDefinition(IManagingDefinition definition) Sets model definition.voidsetSelection(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, toStringMethods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getComponent, isOnline, removeModelListener, setComponentMethods 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 theIManagingDefinitioninstance.- Specified by:
getDefinitionin interfaceIManagingModel- Returns:
- the
IManagingDefinitioninstance, nevernull.
-
getObjects
Description copied from interface:IManagingModelReturns the collection of objects that is edited by the managing component.- Specified by:
getObjectsin interfaceIManagingModel- Returns:
- the collection of objects that is edited by the managing component, never
null.
-
createRuleInput
Description copied from interface:IManagingModelCreates and returns a newly created rule input.- Specified by:
createRuleInputin interfaceIManagingModel- Returns:
IRuleInputinstance, 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.
-