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.void
dispose()
Disposes this model.IChange
getChange()
Iterable<IModel>
getModels()
boolean
isOnline()
void
setComponent(IComponent<?> component)
Associate this model with the component.ValidationResults
validate()
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:IValidable
Validates this object state.- Specified by:
validate
in interfaceIValidable
- Overrides:
validate
in classValidable
- Returns:
- the validation status.
-
setComponent
public void setComponent(IComponent<?> component)
Description copied from interface:IModel
Associate this model with the component.- Specified by:
setComponent
in interfaceIModel
- Overrides:
setComponent
in classModel
- Parameters:
component
- the component to associate with.
-
getModels
public Iterable<IModel> getModels()
- Specified by:
getModels
in interfaceICompoundModel
- Returns:
- the models this compound model contains.
-
dispose
public void dispose()
Description copied from interface:IModel
Disposes this model.
-
isOnline
public boolean isOnline()
-
addModel
protected <M extends IModel> M addModel(M model)
Adds subordinate model.- Parameters:
model
- the model to add.
-
-