Ignore:
Timestamp:
2004-12-17T15:07:36+13:00 (19 years ago)
Author:
mdewsnip
Message:

Tidied up the workspace and collection trees a bit more, in preparation for having special icons for some collection files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java

    r8813 r8846  
    2222import org.greenstone.gatherer.util.Utility;
    2323
    24 public class DragTree
     24public abstract class DragTree
    2525    extends JTree
    2626    implements Autoscroll, DragGestureListener, DragSourceListener, DropTargetListener, DragComponent, TreeSelectionListener {
     
    6363
    6464
    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    {
    7167    super(model);
    72     init(name, background_name, mixed_selection);
     68    init(name, mixed_selection);
     69
    7370    // Connection
    7471    setModel(model);
    7572    }
    7673
    77     public void init(String name, String background_name, boolean mixed_selection) {
     74    public void init(String name, boolean mixed_selection) {
    7875    if(NO_DRAG_CURSOR == null) {
    7976        NO_DRAG_CURSOR = DragSource.DefaultMoveNoDrop;
     
    8582    // Init
    8683    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     }
    9184
    9285    // Creation
Note: See TracChangeset for help on using the changeset viewer.