EVALUATION
We can accomodate this by adding the following to TransferHandler:
/**
* Returns an <code>Action</code> that behaves like a 'cut' operation.
* That is, this will invoke <code>exportToClipboard</code> with
* a <code>MOVE</code> argument on the <code>TransferHandler</code>
* associated with the <code>JComponent</code> that is the source of
* the <code>ActionEvent</code>.
*
* @return cut Action
*/
public static Action getCutAction();
/**
* Returns an <code>Action</code> that behaves like a 'copy' operation.
* That is, this will invoke <code>exportToClipboard</code> with
* a <code>COPY</code> argument on the <code>TransferHandler</code>
* associated with the <code>JComponent</code> that is the source of
* the <code>ActionEvent</code>.
*
* @return cut Action
*/
public static Action getCopyAction();
/**
* Returns an <code>Action</code> that behaves like a 'paste' operation.
* That is, this will invoke <code>importData</code> on the
* <code>TransferHandler</code>
* associated with the <code>JComponent</code> that is the source of
* the <code>ActionEvent</code>.
*
* @return cut Action
*/
public static Action getPasteAction();
scott.violet@eng 2001-05-17
|