Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.editor.descriptiveDataSet.matrix;
10

    
11
import java.util.Map;
12
import java.util.TreeSet;
13

    
14
import org.eclipse.nebula.widgets.nattable.group.ColumnGroupModel;
15

    
16
import eu.etaxonomy.cdm.model.description.Feature;
17
import eu.etaxonomy.cdm.model.term.TermNode;
18

    
19
/**
20
 * @author pplitzner
21
 * @since Aug 21, 2019
22
 *
23
 */
24
public class ColumnGroupWrapper {
25
    private ColumnGroupModel model;
26
    private Map<TermNode<Feature>, TreeSet<Integer>> columnGroupToIndexMap;
27

    
28
    public ColumnGroupWrapper(ColumnGroupModel model,
29
            Map<TermNode<Feature>, TreeSet<Integer>> columnGroupToIndexMap) {
30
        this.model = model;
31
        this.columnGroupToIndexMap = columnGroupToIndexMap;
32
    }
33

    
34
    public ColumnGroupModel getModel() {
35
        return model;
36
    }
37
    public void setModel(ColumnGroupModel model) {
38
        this.model = model;
39
    }
40
    public Map<TermNode<Feature>, TreeSet<Integer>> getColumnGroupToIndexMap() {
41
        return columnGroupToIndexMap;
42
    }
43
    public void setColumnGroupToIndexMap(Map<TermNode<Feature>, TreeSet<Integer>> columnGroupToIndexMap) {
44
        this.columnGroupToIndexMap = columnGroupToIndexMap;
45
    }
46

    
47
    @Override
48
    public String toString() {
49
        return columnGroupToIndexMap.toString() + " [model]: "+model.toString();
50
    }
51

    
52
}
(13-13/23)