de.uni_paderborn.fujaba.coobra.actions
Class CopyAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byde.uni_paderborn.fujaba.coobra.actions.CopyAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class CopyAction
extends javax.swing.AbstractAction

Copy some ASGElements (changes to them) via CoObRA

Version:
$Revision: 1.16.2.1 $
Author:
$Author: cschneid $
See Also:
Serialized Form

Nested Class Summary
static class CopyAction.CopyData
          Instances of this class store data for copying object with CoObRA
 
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
CopyAction()
          Defines an Action object with a default description string and default icon.
CopyAction(CopyAction.CopyData copyData)
          Create a copy action with a specific data storage
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invoked when the action occurs.
 void copy()
          complete the CopyData with the copyObjects and copyChanges data.
static CopyAction.CopyData getClipboard()
           
 CopyAction.CopyData getCopyData()
           
 
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

CopyAction

public CopyAction(CopyAction.CopyData copyData)
Create a copy action with a specific data storage

Parameters:
copyData - where object to be copied reside (selectedObjects) and the data for copying will be entered

CopyAction

public CopyAction()
Defines an Action object with a default description string and default icon.

Method Detail

getClipboard

public static CopyAction.CopyData getClipboard()
Returns:
the CopyData that is the VMs clipboard

getCopyData

public CopyAction.CopyData getCopyData()
Returns:
the data for copying the objects

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when the action occurs.

Parameters:
e - event that caused the action

copy

public void copy()
complete the CopyData with the copyObjects and copyChanges data. Objects are expected to be in the selectedObjects set.