Package com.nomagic.magicdraw.ui
Class ProjectWindow
- java.lang.Object
-
- com.nomagic.magicdraw.ui.ProjectWindow
-
- All Implemented Interfaces:
WindowComponent
@OpenApiAll public class ProjectWindow extends java.lang.Object implements WindowComponent
Project window is a window component associated with the project. To manage project windows of active project useProjectWindowsManager(Accessible viaApplication.getInstance().getMainFrame().getProjectWindowsManager())
-
-
Constructor Summary
Constructors Constructor Description ProjectWindow(WindowComponentInfo info, WindowComponentContent content)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProjectWindowListener(ProjectWindowListener listener)Register given project window listener to this project window.voidclosed()The method is called when project window is closed.WindowComponentContentgetContent()Returns this project window content.java.lang.StringgetId()Returns id of this project window.WindowComponentInfogetInfo()Returns this project window infovoidremoveProjectWindowListener(ProjectWindowListener listener)Unregister given project window listener from this project window.
-
-
-
Constructor Detail
-
ProjectWindow
public ProjectWindow(WindowComponentInfo info, WindowComponentContent content)
Constructor.- Parameters:
info- info about this project window.content- contents of this project window.
-
-
Method Detail
-
getInfo
public WindowComponentInfo getInfo()
Returns this project window info- Specified by:
getInfoin interfaceWindowComponent- Returns:
- component info
-
getId
public java.lang.String getId()
Returns id of this project window.- Returns:
- project window id.
-
getContent
public WindowComponentContent getContent()
Returns this project window content.- Specified by:
getContentin interfaceWindowComponent- 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.
-
-