Class ProjectWindow

java.lang.Object
com.nomagic.magicdraw.ui.ProjectWindow
All Implemented Interfaces:
WindowComponent

@OpenApiAll public class ProjectWindow extends Object implements WindowComponent
Project window is a window component associated with the project. To manage project windows of active project use ProjectWindowsManager (Accessible via Application.getInstance().getMainFrame().getProjectWindowsManager())
  • Constructor Details

  • Method Details

    • getInfo

      public WindowComponentInfo getInfo()
      Returns this project window info
      Specified by:
      getInfo in interface WindowComponent
      Returns:
      component info
    • getId

      public String getId()
      Returns id of this project window.
      Returns:
      project window id.
    • getContent

      public WindowComponentContent getContent()
      Returns this project window content.
      Specified by:
      getContent in interface WindowComponent
      Returns:
      project window content.
    • addProjectWindowListener

      public void addProjectWindowListener(ProjectWindowListener listener)
      Register given project window listener to this project window.
      Parameters:
      listener - project window listener.
    • removeProjectWindowListener

      public void removeProjectWindowListener(ProjectWindowListener listener)
      Unregister given project window listener from this project window.
      Parameters:
      listener - project window listener.
    • closed

      public final void closed()
      The method is called when project window is closed. Do not call this method.