Show TOC

 Moving Interface Components in ClassesLocate this document in the navigation structure

Use

You can move attributes, methods and events of an interface to the implementing classes if required. For more information, see Class Diagram.

Caution

Note that moving interface methods that are redefined in subclasses requires further adjustments to the subclasses. The Assistant performs these adjustments for you.

Procedure
  1. In the Class Builder, open the relevant interface.
  2. Make sure you are in Change mode.
  3. Choose Utilities → Refactoring → Refactoring Assistant.
  4. Select the interface component and move it to the name of the implementing class using Drag & Drop.
    Note

    If there is more than one subclass, you can move the selected components to all the classes implementing the interface in one step by dragging the components to the Implementing classes folder.

  5. Choose Save.
  6. Close the Assistant.
Result

The selected components of the interface are created in the implementing classes.