ca.sqlpower.architect.swingui.action
Class DeleteSelectedAction

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

public class DeleteSelectedAction
extends AbstractArchitectAction

See Also:
Serialized Form

Field Summary
protected  DBTree dbt
          The DBTree instance that is associated with this Action.
 
Fields inherited from class ca.sqlpower.architect.swingui.action.AbstractArchitectAction
frame, playpen, session
 
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
DeleteSelectedAction(ArchitectSwingSession session)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          This action takes care of handling Delete requests from the DBTree and Playpen.
 
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
 

Field Detail

dbt

protected final DBTree dbt
The DBTree instance that is associated with this Action.

Constructor Detail

DeleteSelectedAction

public DeleteSelectedAction(ArchitectSwingSession session)
                     throws ArchitectException
Throws:
ArchitectException
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
This action takes care of handling Delete requests from the DBTree and Playpen. If more than 1 components selected, it checks to see if any column is selected, in that case, we don't want tables with columns selected get deleted.



Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca