Changeset 4617 for trunk/gli/src
- Timestamp:
- 2003-06-12T17:20:51+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java
r4602 r4617 53 53 static private final int AUTOSCROLL_MARGIN = 12; 54 54 55 public DragTree(String name, String background_name ) {55 public DragTree(String name, String background_name, boolean mixed_selection) { 56 56 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) { 61 61 super(model); 62 init(name, background_name );62 init(name, background_name, mixed_selection); 63 63 // Connection 64 64 setModel(model); 65 65 } 66 66 67 public void init(String name, String background_name ) {67 public void init(String name, String background_name, boolean mixed_selection) { 68 68 // Init 69 69 this.name = name; … … 79 79 this.setLargeModel(true); 80 80 this.setOpaque(true); 81 this.setSelectionModel(new DragTreeSelectionModel(this ));81 this.setSelectionModel(new DragTreeSelectionModel(this, mixed_selection)); 82 82 // Connection 83 83 addTreeSelectionListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.