Package com.nomagic.magicdraw.ui
Class ProjectWindow
java.lang.Object
com.nomagic.magicdraw.ui.ProjectWindow
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionProjectWindow
(WindowComponentInfo info, WindowComponentContent content) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Register given project window listener to this project window.final void
closed()
The method is called when project window is closed.Returns this project window content.getId()
Returns id of this project window.getInfo()
Returns this project window infovoid
Unregister given project window listener from this project window.
-
Constructor Details
-
ProjectWindow
Constructor.- Parameters:
info
- info about this project window.content
- contents of this project window.
-
-
Method Details
-
getInfo
Returns this project window info- Specified by:
getInfo
in interfaceWindowComponent
- Returns:
- component info
-
getId
Returns id of this project window.- Returns:
- project window id.
-
getContent
Returns this project window content.- Specified by:
getContent
in interfaceWindowComponent
- Returns:
- project window content.
-
addProjectWindowListener
Register given project window listener to this project window.- Parameters:
listener
- project window listener.
-
removeProjectWindowListener
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.
-