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()
)
-
-
Field Summary
Fields Modifier and Type Field Description private WindowComponentContent
content
The contents of the windowprivate WindowComponentInfo
info
Project window infoprivate com.nomagic.utils.AList<ProjectWindowListener>
listeners
Listeners associated with this project window
-
Constructor Summary
Constructors Constructor Description ProjectWindow(WindowComponentInfo info, WindowComponentContent content)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProjectWindowListener(ProjectWindowListener listener)
Register given project window listener to this project window.void
closed()
The method is called when project window is closed.WindowComponentContent
getContent()
Returns this project window content.java.lang.String
getId()
Returns id of this project window.WindowComponentInfo
getInfo()
Returns this project window infovoid
removeProjectWindowListener(ProjectWindowListener listener)
Unregister given project window listener from this project window.
-
-
-
Field Detail
-
info
private final WindowComponentInfo info
Project window info
-
content
private final WindowComponentContent content
The contents of the window
-
listeners
private com.nomagic.utils.AList<ProjectWindowListener> listeners
Listeners associated with 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:
getInfo
in 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:
getContent
in 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.
-
-