net.sourceforge.squirrel_sql.plugins.postgres.actions
Class AbstractObjectTreeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
          extended by net.sourceforge.squirrel_sql.client.action.SquirrelAction
              extended by net.sourceforge.squirrel_sql.plugins.postgres.actions.AbstractObjectTreeAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, IObjectTreeAction
Direct Known Subclasses:
VacuumTableAction

public abstract class AbstractObjectTreeAction
extends SquirrelAction
implements IObjectTreeAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
BaseAction.IBaseActionPropertyNames
 
Field Summary
protected  IObjectTreeAPI _tree
          Current object tree
 
Fields inherited from class net.sourceforge.squirrel_sql.client.action.SquirrelAction
_app
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractObjectTreeAction(IApplication app, Resources rsrc)
           
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
protected abstract  ICommand getCommand(IDatabaseObjectInfo[] info)
           
protected abstract  String getErrorMessage()
           
protected abstract  boolean isMultipleObjectAction()
           
 void setObjectTree(IObjectTreeAPI tree)
          Set the current object tree.
 
Methods inherited from class net.sourceforge.squirrel_sql.client.action.SquirrelAction
getApplication, getKeyStroke
 
Methods inherited from class net.sourceforge.squirrel_sql.fw.gui.action.BaseAction
getParentFrame
 
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

_tree

protected IObjectTreeAPI _tree
Current object tree

Constructor Detail

AbstractObjectTreeAction

public AbstractObjectTreeAction(IApplication app,
                                Resources rsrc)
Method Detail

actionPerformed

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

getCommand

protected abstract ICommand getCommand(IDatabaseObjectInfo[] info)

isMultipleObjectAction

protected abstract boolean isMultipleObjectAction()

getErrorMessage

protected abstract String getErrorMessage()

setObjectTree

public void setObjectTree(IObjectTreeAPI tree)
Set the current object tree.

Specified by:
setObjectTree in interface IObjectTreeAction
Parameters:
tree - The current object tree.


Copyright © 2001-2010. All Rights Reserved.