Interface IDefinitionModel

All Superinterfaces:
ICompoundModel, IModel, IValidable
All Known Subinterfaces:
IChartAxisModel, IChartPointModel, IChartSeriesModel
All Known Implementing Classes:
AbstractDefinitionModel, BmChartAxisModel, BmChartPointModel, BmChartSeriesModel, DefinitionModel, DtGranularEditorPageDefinitionModel, LabelAreaModel

public interface IDefinitionModel extends ICompoundModel
The model that is used by components that creates their child by IDefinitions.
The definition model extends the ICompoundModel interface. So it keeps the models created by corresponding component.
See Also:
  • Method Details

    • getDefinition

      IContainerDefinition getDefinition()
      Returns the container definition.
      Returns:
      the container definition, can be null.
    • getObjects

      Collection<Object> getObjects()
      Returns the collection of editing objects.
      Returns:
      the collection, never null.
    • getRuleResult

      IRuleResult getRuleResult()
      Returns the rule result.
      Returns:
      the rule result, never null.
      See Also:
    • setRuleResult

      void setRuleResult(IRuleResult ruleResult)
      Sets the rule result.
      Parameters:
      ruleResult - the rule result, cannot be null.
      See Also:
    • addRuleResultListener

      void addRuleResultListener(IRuleResultListener listener)
      Adds the rule result listener.
      Parameters:
      listener - the listener to add, cannot be null.
    • removeRuleResultListener

      void removeRuleResultListener(IRuleResultListener listener)
      Removes the rule result listener.
      Parameters:
      listener - the listener to remove, cannot be null.
    • getRuleResultProcessor

      IRuleResultProcessor getRuleResultProcessor()
      Returns a IRuleResultProcessor instance.
      Returns:
      IRuleResultProcessor instance or null.
    • setRuleResultProcessor

      void setRuleResultProcessor(IRuleResultProcessor ruleResultProcessor)
      Sets the specified ruleResultProcessor to the model.
      Parameters:
      ruleResultProcessor - the IRuleResultProcessor instance, cannot be null.
    • addModel

      void addModel(IModel model)
      Adds the given model to the current definition model.
      Parameters:
      model - the model to add, cannot be null.
    • removeModel

      void removeModel(IModel model)
      Removes the given model from the current definition model.
      Parameters:
      model - the model to remove, cannot be null.