ca.sqlpower.wabit.swingui.action
Class NewQueryAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ca.sqlpower.wabit.swingui.action.NewQueryAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NewQueryAction
extends javax.swing.AbstractAction

A Swing Action for creating new relational (SQL) queries in a Wabit workspace.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
NewQueryAction(WabitSwingSession session)
          Creates a new query with the first available datasource, or no datasource if one does not exist.
NewQueryAction(WabitSwingSession session, ca.sqlpower.sql.JDBCDataSource ds)
          Creates a new query and sets its datasource to the given datasource.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewQueryAction

public NewQueryAction(WabitSwingSession session)
Creates a new query with the first available datasource, or no datasource if one does not exist.

Parameters:
session - The WabitSwingSession containing the workspace that the new query will be added to.

NewQueryAction

public NewQueryAction(WabitSwingSession session,
                      ca.sqlpower.sql.JDBCDataSource ds)
Creates a new query and sets its datasource to the given datasource.

Parameters:
session - The WabitSwingSession containing the workspace that the new query will be added to.
ds - The datasource that the new query will use to start with
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)


Copyright © 2009. All Rights Reserved.