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
public class PropertyPaletteModel extends Model implements IManagingModel
Model for property palette. See AEF2 faq for more info.
-
-
Constructor Summary
Constructors Constructor Description PropertyPaletteModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IStructuredSelectionadaptSelection(ISelection selection)Adapts given selection toIStructuredSelection.protected voidclearModel()Clears model.IRuleInputcreateRuleInput()Creates and returns a newly created rule input.IChangegetChange()IManagingDefinitiongetDefinition()Returns theIManagingDefinitioninstance.Collection<Object>getObjects()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, 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
-
-
-
-
Method Detail
-
getChange
public IChange getChange()
-
setSelection
public void setSelection(ISelection selection)
Sets model selection.- Parameters:
selection- - new selection. Can benull.
-
getDefinition
public IManagingDefinition getDefinition()
Returns theIManagingDefinitioninstance.- Specified by:
getDefinitionin interfaceIManagingModel- Returns:
- the
IManagingDefinitioninstance, nevernull.
-
getObjects
public Collection<Object> 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
public IRuleInput createRuleInput()
Description copied from interface:IManagingModelCreates and returns a newly created rule input.- Specified by:
createRuleInputin interfaceIManagingModel- Returns:
IRuleInputinstance, nevernull.
-
setDefinition
protected void setDefinition(IManagingDefinition definition)
Sets model definition.- Parameters:
definition- - definition to set. Cannot benull.- See Also:
IManagingDefinition
-
clearModel
protected void clearModel()
Clears model.
-
adaptSelection
protected IStructuredSelection adaptSelection(ISelection selection)
Adapts given selection toIStructuredSelection.- Parameters:
selection- - selection to adapt. Cannot benull.- Returns:
- non empty
IStructuredSelection. Can returnnull.
-
-