- Timestamp:
- 2004-12-17T15:07:36+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java
r8813 r8846 22 22 import org.greenstone.gatherer.util.Utility; 23 23 24 public class DragTree24 public abstract class DragTree 25 25 extends JTree 26 26 implements Autoscroll, DragGestureListener, DragSourceListener, DropTargetListener, DragComponent, TreeSelectionListener { … … 63 63 64 64 65 public DragTree(String name, String background_name, boolean mixed_selection) { 66 super(); 67 init(name, background_name, mixed_selection); 68 } 69 70 public DragTree(String name, TreeModel model, String background_name, boolean mixed_selection) { 65 public DragTree(String name, TreeModel model, boolean mixed_selection) 66 { 71 67 super(model); 72 init(name, background_name, mixed_selection); 68 init(name, mixed_selection); 69 73 70 // Connection 74 71 setModel(model); 75 72 } 76 73 77 public void init(String name, String background_name,boolean mixed_selection) {74 public void init(String name, boolean mixed_selection) { 78 75 if(NO_DRAG_CURSOR == null) { 79 76 NO_DRAG_CURSOR = DragSource.DefaultMoveNoDrop; … … 85 82 // Init 86 83 this.name = name; 87 if(background_name != null) {88 this.disabled_background = new ImageIcon("background.gif");89 this.normal_background = new ImageIcon(background_name);90 }91 84 92 85 // Creation
Note:
See TracChangeset
for help on using the changeset viewer.