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 IStructuredSelection
adaptSelection(ISelection selection)
Adapts given selection toIStructuredSelection
.protected void
clearModel()
Clears model.IRuleInput
createRuleInput()
Creates and returns a newly created rule input.IChange
getChange()
IManagingDefinition
getDefinition()
Returns theIManagingDefinition
instance.Collection<Object>
getObjects()
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
-
-
-
-
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 theIManagingDefinition
instance.- Specified by:
getDefinition
in interfaceIManagingModel
- Returns:
- the
IManagingDefinition
instance, nevernull
.
-
getObjects
public Collection<Object> 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
public IRuleInput createRuleInput()
Description copied from interface:IManagingModel
Creates and returns a newly created rule input.- Specified by:
createRuleInput
in interfaceIManagingModel
- Returns:
IRuleInput
instance, 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
.
-
-