Package com._1c.g5.aef2.models
Class CompoundModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.CompoundModel
-
- All Implemented Interfaces:
ICompoundModel,IModel,IValidable
- Direct Known Subclasses:
AbstractDtDynamicTreeModel,AbstractProjectWizard.WizardModel,AbstractTypeDescriptionModel,CharacteristicsDescriptionModel,ChartColorPaletteDescriptionDetailedModel,ChartScaleDetailedModel,CommonPictureContentEditModel,MdObjectModel,PredefinedItemModel
public abstract class CompoundModel extends Model implements ICompoundModel
Base class for the compound models.- See Also:
IModel,ICompoundModel
-
-
Constructor Summary
Constructors Constructor Description CompoundModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <M extends IModel>
MaddModel(M model)Adds subordinate model.voiddispose()Disposes this model.IChangegetChange()Iterable<IModel>getModels()booleanisOnline()voidsetComponent(IComponent<?> component)Associate this model with the component.ValidationResultsvalidate()Validates this object state.-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, 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, getComponent, removeModelListener
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate
-
-
-
-
Method Detail
-
getChange
public IChange getChange()
-
validate
public ValidationResults validate()
Description copied from interface:IValidableValidates this object state.- Specified by:
validatein interfaceIValidable- Overrides:
validatein classValidable- Returns:
- the validation status.
-
setComponent
public void setComponent(IComponent<?> component)
Description copied from interface:IModelAssociate this model with the component.- Specified by:
setComponentin interfaceIModel- Overrides:
setComponentin classModel- Parameters:
component- the component to associate with.
-
getModels
public Iterable<IModel> getModels()
- Specified by:
getModelsin interfaceICompoundModel- Returns:
- the models this compound model contains.
-
dispose
public void dispose()
Description copied from interface:IModelDisposes this model.
-
isOnline
public boolean isOnline()
-
addModel
protected <M extends IModel> M addModel(M model)
Adds subordinate model.- Parameters:
model- the model to add.
-
-