Ignore:
Timestamp:
2003-06-12T17:20:51+12:00 (21 years ago)
Author:
jmt12
Message:

2030120: Modified constructor to allow specification of whether the selection model should allow mixed selections, i.e. both files and folders.

File:
1 edited

Legend:

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

    r4602 r4617  
    5353    static private final int AUTOSCROLL_MARGIN = 12;
    5454
    55     public DragTree(String name, String background_name) {
     55    public DragTree(String name, String background_name, boolean mixed_selection) {
    5656    super();
    57     init(name, background_name);
    58     }
    59 
    60     public DragTree(String name, TreeModel model, String background_name) {
     57    init(name, background_name, mixed_selection);
     58    }
     59
     60    public DragTree(String name, TreeModel model, String background_name, boolean mixed_selection) {
    6161    super(model);
    62     init(name, background_name);
     62    init(name, background_name, mixed_selection);
    6363    // Connection
    6464    setModel(model);
    6565    }
    6666
    67     public void init(String name, String background_name) {
     67    public void init(String name, String background_name, boolean mixed_selection) {
    6868    // Init
    6969    this.name = name;
     
    7979    this.setLargeModel(true);
    8080    this.setOpaque(true);
    81     this.setSelectionModel(new DragTreeSelectionModel(this));
     81    this.setSelectionModel(new DragTreeSelectionModel(this, mixed_selection));
    8282    // Connection
    8383    addTreeSelectionListener(this);
Note: See TracChangeset for help on using the changeset viewer.