net.sourceforge.squirrel_sql.plugins.refactoring.commands
Class AbstractRefactoringCommand.ShowSQLListener

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.refactoring.commands.AbstractRefactoringCommand.ShowSQLListener
All Implemented Interfaces:
ActionListener, EventListener, SQLResultListener
Enclosing class:
AbstractRefactoringCommand

protected class AbstractRefactoringCommand.ShowSQLListener
extends Object
implements ActionListener, SQLResultListener

An ActionListener for the Show SQL button that opens the sql statement in a dialog. The new dialog will have the title and parent window as specified in the constructors parameters.

If the specified parent JDialog is null, the new dialog's parent will be the application's mainframe.


Constructor Summary
AbstractRefactoringCommand.ShowSQLListener(String dialogTitle, IDisposableDialog parentDialog)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void finished(String[] stmts)
          This is called to let the listener know when the SQL result is ready.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRefactoringCommand.ShowSQLListener

public AbstractRefactoringCommand.ShowSQLListener(String dialogTitle,
                                                  IDisposableDialog parentDialog)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

finished

public void finished(String[] stmts)
Description copied from interface: SQLResultListener
This is called to let the listener know when the SQL result is ready.

Specified by:
finished in interface SQLResultListener
Parameters:
stmts - the SQL statements that resulted from a request.


Copyright © 2001-2012. All Rights Reserved.