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,ChangeDistributionSettingsDialogModel,ChangeUserModeDialogModel,CharacteristicsDescriptionModel,ChartColorPaletteDescriptionDetailedModel,ChartScaleDetailedModel,CommonPictureContentEditModel,LabelAreaDetailedModel,MdObjectModel,MergeSupportRuleSettingsDialogModel,PredefinedAccountModel,PredefinedCalculationTypeModel,PredefinedItemModel,SupportRuleSettingsDialogModel
Base class for the compound models.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <M extends IModel>
MaddModel(M model) Adds subordinate model.voiddispose()Disposes this model.booleanisOnline()voidsetComponent(IComponent<?> component) Associate this model with the component.org.eclipse.core.runtime.IStatusvalidate()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, toStringMethods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, removeValidator, 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, getComponent, removeModelListenerMethods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate
-
Constructor Details
-
CompoundModel
public CompoundModel()
-
-
Method Details
-
getChange
-
validate
public org.eclipse.core.runtime.IStatus validate()Description copied from interface:IValidableValidates this object state.- Specified by:
validatein interfaceIValidable- Overrides:
validatein classValidable- Returns:
- the validation status.
-
setComponent
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
- 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
Adds subordinate model.- Parameters:
model- the model to add.
-