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
ConstructorsConstructorDescriptionProjectWindow(WindowComponentInfo info, WindowComponentContent content) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister given project window listener to this project window.final voidclosed()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 infovoidUnregister 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:
getInfoin interfaceWindowComponent- Returns:
- component info
-
getId
Returns id of this project window.- Returns:
- project window id.
-
getContent
Returns this project window content.- Specified by:
getContentin 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.
-