-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
5.0
-
x86
-
windows_2000
A DESCRIPTION OF THE REQUEST :
The BasicTreeUI installListeners() method directly instantiates a TreeDropTargetListener to respond to DropTarget events. The rest of the installListeners() method use factory methods to add a level of indirection in creating these listener classes.
JUSTIFICATION :
A factory method should be used for TreeDropTargetListener too to allow custom L&Fs to provide custom TreeDropTargetListener.
The pattern of using factory methods should be part of the L&F coding standards.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I'd like to see a createDropTargetListener() method in BasicTreeUI with installListeners() calling it.
CUSTOMER SUBMITTED WORKAROUND :
The workaround is to copy the BasicTreeUI installListeners() method to BasicTreeUI subclass and change the creation of TreeDropTargetListener to desired class.
###@###.### 10/26/04 22:30 GMT
The BasicTreeUI installListeners() method directly instantiates a TreeDropTargetListener to respond to DropTarget events. The rest of the installListeners() method use factory methods to add a level of indirection in creating these listener classes.
JUSTIFICATION :
A factory method should be used for TreeDropTargetListener too to allow custom L&Fs to provide custom TreeDropTargetListener.
The pattern of using factory methods should be part of the L&F coding standards.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I'd like to see a createDropTargetListener() method in BasicTreeUI with installListeners() calling it.
CUSTOMER SUBMITTED WORKAROUND :
The workaround is to copy the BasicTreeUI installListeners() method to BasicTreeUI subclass and change the creation of TreeDropTargetListener to desired class.
###@###.### 10/26/04 22:30 GMT
- duplicates
-
JDK-4468566 Swing DnD should not use selection to show drop location
- Resolved
- relates to
-
JDK-4942851 canImport should carry Transferable in TransferHandler
- Resolved