cfa.vo.iris
Interface IWorkspace

All Known Implementing Classes:
IrisWorkspace

public interface IWorkspace

A workspace is implemented by the enclosing application to provide components with hooks to the shared context in which they are executed or operations that are to be performed by the enclosing desktop.

Author:
olaurino

Method Summary
 void addFrame(JInternalFrame frame)
          Add a frame to the workspace so that it can be managed by the underlying Desktop.
 JDesktopPane getDesktop()
          This method returns a reference to the actual desktop in which all the components live.
 JFileChooser getFileChooser()
          Get a singleton instance of a file chooser whose state is saved between different accesses.
 JFrame getRootFrame()
          When spawning new windows and frame the components usually need a reference to the application root frame.
 ISedManager getSedManager()
          SED objects are maintained by a centralized SED manager.
 void removeFrame(JInternalFrame frame)
          Remove an internal frame from the Desktop.
 

Method Detail

addFrame

void addFrame(JInternalFrame frame)
Add a frame to the workspace so that it can be managed by the underlying Desktop.

Parameters:
frame - The JInternalFrame that has to be managed by the Desktop.

removeFrame

void removeFrame(JInternalFrame frame)
Remove an internal frame from the Desktop.

Parameters:
frame - The frame that must be dropped from the Desktop.

getFileChooser

JFileChooser getFileChooser()
Get a singleton instance of a file chooser whose state is saved between different accesses. This allows the last selected file system location to be shared among different components.

Returns:
a JFileChooser instance.

getSedManager

ISedManager getSedManager()
SED objects are maintained by a centralized SED manager. Components must refer to this manager to get an updated view of the SEDs opened by the user or to perform particular operations.

Returns:
an ISedManager instance.

getRootFrame

JFrame getRootFrame()
When spawning new windows and frame the components usually need a reference to the application root frame.

Returns:
A reference to the main application frame.

getDesktop

JDesktopPane getDesktop()
This method returns a reference to the actual desktop in which all the components live.

Returns:
A reference to the JDesktopPane included in this application.


Copyright © 2013. All rights reserved.