Class UpdateNoBoFeature

All Implemented Interfaces:
IFeature, IFeatureProviderHolder, IUpdateFeature, IUpdate, IDescription, IName

public class UpdateNoBoFeature extends AbstractUpdateFeature
The Class UpdateNoBoFeature. An update feature, which marks a pictogram element without a linked business object as "update needed". On "update" such a pictogram element is deleted.
  • Constructor Details

  • Method Details

    • canUpdate

      public boolean canUpdate(IUpdateContext context)
      Description copied from interface: IUpdate
      Checks whether the values of the current pictogram element of the given context can be updated.
      Parameters:
      context - the context
      Returns:
      true if update is possible
    • updateNeeded

      public IReason updateNeeded(IUpdateContext context)
      Description copied from interface: IUpdate
      Check whether the values in the pictogram element are up to date, that means whether the graphics algorithm of this pictogram element contain the latest values from the business objects.
      Parameters:
      context - the context
      Returns:
      true if parts of the pictogram model needs to be updated with the latest values from the business model
    • update

      public boolean update(IUpdateContext context)
      Description copied from interface: IUpdate
      Updates the pictogram element. It copies the latest values from the business model to the graphics algorithm of this pictogram elements.
      Parameters:
      context - the context
      Returns:
      true, if update process was successfull