ca.sqlpower.wabit.swingui.action
Class ExportWabitObjectAction<T extends WabitObject>

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ca.sqlpower.wabit.swingui.action.ExportWabitObjectAction<T>
Type Parameters:
T -
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ExportWabitObjectAction<T extends WabitObject>
extends javax.swing.AbstractAction

An action for exporting a WabitObject into a workspace file. It uses Wabit's saving mechanisms to save the given object and all other WabitObjects it depends on. For example, if you're exporting a QueryCache, then this action should also export the database connection that it depends on as well. The resulting file can be opened as a separate Workspace, or it can be imported into another 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
ExportWabitObjectAction(WabitSwingSession session, T object, javax.swing.Icon icon, java.lang.String description)
           
 
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

ExportWabitObjectAction

public ExportWabitObjectAction(WabitSwingSession session,
                               T object,
                               javax.swing.Icon icon,
                               java.lang.String description)
Parameters:
session - The session that the WabitObject belongs to
object - The WabitObject to be saved
icon - An Icon to associate with the action for controls, such as buttons
description - A short description of the action that is used as a tooltip
Method Detail

actionPerformed

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


Copyright © 2009. All Rights Reserved.