Class 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

public abstract class CompoundModel extends Model implements ICompoundModel
Base class for the compound models.
See Also:
  • Constructor Details

    • CompoundModel

      public CompoundModel()
  • Method Details

    • getChange

      public IChange getChange()
      Specified by:
      getChange in interface IModel
      Returns:
      change describing the modifications done to the model.
    • validate

      public org.eclipse.core.runtime.IStatus validate()
      Description copied from interface: IValidable
      Validates this object state.
      Specified by:
      validate in interface IValidable
      Overrides:
      validate in class Validable
      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 interface IModel
      Overrides:
      setComponent in class Model
      Parameters:
      component - the component to associate with.
    • getModels

      public Iterable<IModel> getModels()
      Specified by:
      getModels in interface ICompoundModel
      Returns:
      the models this compound model contains.
    • dispose

      public void dispose()
      Description copied from interface: IModel
      Disposes this model.
      Specified by:
      dispose in interface IModel
      Overrides:
      dispose in class Model
    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface IModel
      Overrides:
      isOnline in class Model
      Returns:
      true if this model is online, false otherwise.
    • addModel

      protected <M extends IModel> M addModel(M model)
      Adds subordinate model.
      Parameters:
      model - the model to add.