|
Quick Lists
|
|
Bug ID:
|
4460011
|
|
Votes
|
0
|
|
Synopsis
|
TransferHandler Actions should be registered by UI
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
merlin-beta
|
|
Release Fixed
|
1.4(merlin-beta2)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
|
|
Submit Date
|
17-MAY-2001
|
|
Description
|
With the introduction of the DnD support in Swing JComponent.setTransferHandler registers Actions directly in the JComponent's ActionMap. This is something that we have said we won't do as these ActionMaps are meant for the developer to use. In order for the UIs to register the Action the Actions need to be public.
|
|
Work Around
|
N/A
|
|
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();
xxxxx@xxxxx 2001-05-17
|
|
Comments
|
Submitted On 13-APR-2002
avlamba
see man try to do some thing which is really usefull,
not this crap again ok
bye
ur
loving
chicha
light lo
han
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |