This class manages the windows for the application.
TODO: Correct these notes
When a session closes the window manager will ensure that
all of the windows for that sesion are closed.
Similarily when a window is closed the windows manager will ensure that
references to the window are removed for the session.
JASON: Prior to this patch there was some code movement from this class to
Sessionmanager. The idea being that Sessionmanager was the controller.
Do we still want to do this? Remember in the future there will probably be
an SDI as well as MDI version of the windows.
author: Colin Bell author: Jason Height
addSessionSheetListener(InternalFrameListener listener) Adds a listener to the sheets attached to this session When new
sheets are constructed, they are automatically added to the session via
the registerSessionSheet method.
showCopyAliasInternalFrame(SQLAlias alias) Create and show a new maintenance sheet that will allow the user to create a
new alias that is a copy of the passed one.
public void
showCopyDriverInternalFrame(ISQLDriver driver) Create and show a new maintenance sheet that will allow the user to
create a new driver that is a copy of the passed one.
Adds a listener to the sheets attached to this session When new
sheets are constructed, they are automatically added to the session via
the registerSessionSheet method. All other listener events fire due
to interaction with the frame. The
InternalFrameListener.internalFrameOpened is a good location to tailor
the session sheets (ie internal frame) from a plugin. Examples can be
found in the oracle plugin of how to modify how a session sheet.
Create a new internal frame for the passed session.
Parameters: session - Session we are creating internal frame for. throws: IllegalArgumentException - Thrown if ISession is passed as null.
Creates a new Object Tree internal frame for the passed session.
Parameters: session - Session we are creating internal frame for. throws: IllegalArgumentException - Thrown if ISession is passed as null.
Creates a new SQL View internal frame for the passed session.
Parameters: session - Session we are creating internal frame for. throws: IllegalArgumentException - Thrown if ISession is passed as null.
Registers a sheet that is attached to a session. This sheet will
be automatically closed when the session is closing.
There is no need to call this method manually. Any
classes that properly extend BaseSessionInternalFrame will be registered.
showCopyAliasInternalFrame
public void showCopyAliasInternalFrame(SQLAlias alias)(Code)
Create and show a new maintenance sheet that will allow the user to create a
new alias that is a copy of the passed one.
The new maintenance sheet. throws: IllegalArgumentException - Thrown if a nullISQLAlias passed.
showCopyDriverInternalFrame
public void showCopyDriverInternalFrame(ISQLDriver driver)(Code)
Create and show a new maintenance sheet that will allow the user to
create a new driver that is a copy of the passed one.
The new maintenance sheet. throws: IllegalArgumentException - Thrown if a nullISQLDriver passed.
Get a EditWhereCols sheet for the passed session. If one already exists it
will be brought to the front. If one doesn't exist it will be created.
Parameters: tree - Object tree containing the table. Parameters: objectInfo - An instance of a class containing information aboutthe database metadata. The maintenance sheet for the passed session.
showModifyAliasInternalFrame
public void showModifyAliasInternalFrame(ISQLAlias alias)(Code)
Get a maintenance sheet for the passed alias. If a maintenance sheet already
exists it will be brought to the front. If one doesn't exist it will be
created.
Parameters: alias - The alias that user has requested to modify. throws: IllegalArgumentException - Thrown if a nullISQLAlias passed.
showModifyDriverInternalFrame
public void showModifyDriverInternalFrame(ISQLDriver driver)(Code)
Get a maintenance sheet for the passed driver. If a maintenance sheet
already exists it will be brought to the front. If one doesn't exist
it will be created.
Parameters: driver - The driver that user has requested to modify. throws: IllegalArgumentException - Thrown if a nullISQLDriver passed.
Get an SQL Filter sheet for the passed data. If one already exists it
will be brought to the front. If one doesn't exist it will be created.
Parameters: objectTree - Parameters: objectInfo - An instance of a class containing information aboutthe database metadata. The filter dialog. throws: IllegalArgumentException - Thrown if nullContentsTab,IObjectTreeAPI, or IDatabaseObjectInfo passed.
showSessionPropertiesDialog
public synchronized void showSessionPropertiesDialog(ISession session, int tabIndexToSelect)(Code)
Get a properties dialog for the passed session. If one already
exists it will be brought to the front. If one doesn't exist it will be
created.
Parameters: session - The session that user has request property dialog for. Parameters: tabNameToSelect - The name (title) of the Tab to select. First Tab will be selectedif tabNameToSelect is null or doesnt match any tab. Parameters: tabNameToSelect - throws: IllegalArgumentException - Thrown if a nullISession passed.