org.jsqltool.gui
Class ConnWindows

java.lang.Object
  |
  +--org.jsqltool.gui.ConnWindows
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.InternalFrameListener

public class ConnWindows
extends java.lang.Object
implements javax.swing.event.InternalFrameListener

Title: JSqlTool Project

Description: Class used to collect internal frames and to listen internal frame events.

Copyright: Copyright (C) 2006 Mauro Carniel

This file is part of JSqlTool project. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it


Constructor Summary
ConnWindows(MainFrame frame, javax.swing.JDesktopPane desktop, javax.swing.JPanel statusBar)
           
 
Method Summary
 void addWindow(DbConnWindow window)
          Method used to register an internal frame.
 void closeAll()
           
 void closeConnectionAndWindows(DbConnectionUtil dbConnUtil)
           
 java.util.List getConnectionsList()
           
 DbConnectionUtil getCurrentDbConnUtil()
           
 javax.swing.JInternalFrame getCurrentFrame()
           
 void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
          Invoked when an internal frame is activated. 
 void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
          Invoked when an internal frame has been closed. 
 void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
          Invoked when an internal frame is in the process of being closed.
 void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
          Invoked when an internal frame is de-activated. 
 void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
          Invoked when an internal frame is de-iconified. 
 void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
          Invoked when an internal frame is iconified. 
 void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
           
 void removeWindow(DbConnWindow window)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnWindows

public ConnWindows(MainFrame frame,
                   javax.swing.JDesktopPane desktop,
                   javax.swing.JPanel statusBar)
Method Detail

addWindow

public void addWindow(DbConnWindow window)
Method used to register an internal frame.

Parameters:
window - internal frame

removeWindow

public void removeWindow(DbConnWindow window)

getConnectionsList

public java.util.List getConnectionsList()

closeConnectionAndWindows

public void closeConnectionAndWindows(DbConnectionUtil dbConnUtil)

closeAll

public void closeAll()

internalFrameActivated

public void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
Invoked when an internal frame is activated. 

Specified by:
internalFrameActivated in interface javax.swing.event.InternalFrameListener

internalFrameClosed

public void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
Invoked when an internal frame has been closed. 

Specified by:
internalFrameClosed in interface javax.swing.event.InternalFrameListener

internalFrameClosing

public void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
Invoked when an internal frame is in the process of being closed.

Specified by:
internalFrameClosing in interface javax.swing.event.InternalFrameListener

internalFrameDeactivated

public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
Invoked when an internal frame is de-activated. 

Specified by:
internalFrameDeactivated in interface javax.swing.event.InternalFrameListener

internalFrameDeiconified

public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
Invoked when an internal frame is de-iconified. 

Specified by:
internalFrameDeiconified in interface javax.swing.event.InternalFrameListener

internalFrameIconified

public void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
Invoked when an internal frame is iconified. 

Specified by:
internalFrameIconified in interface javax.swing.event.InternalFrameListener

internalFrameOpened

public void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameOpened in interface javax.swing.event.InternalFrameListener

getCurrentDbConnUtil

public DbConnectionUtil getCurrentDbConnUtil()

getCurrentFrame

public javax.swing.JInternalFrame getCurrentFrame()