ca.sqlpower.wabit.swingui.action
Class ExportWabitObjectAction<T extends WabitObject>
java.lang.Object
javax.swing.AbstractAction
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
| 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 |
| 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 |
ExportWabitObjectAction
public ExportWabitObjectAction(WabitSwingSession session,
T object,
javax.swing.Icon icon,
java.lang.String description)
- Parameters:
session - The session that the WabitObject belongs toobject - The WabitObject to be savedicon - An Icon to associate with the action for controls, such as
buttonsdescription - A short description of the action that is used as a tooltip
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Copyright © 2009. All Rights Reserved.