]> gerrit.simantics Code Review - simantics/platform.git/blob
3d943a0922967c31540e62257b727638f1229e14
[simantics/platform.git] /
1 package org.simantics.browsing.ui.nattable;
2
3 import org.simantics.browsing.ui.swt.AdaptableHintContext;
4 import org.simantics.db.layer0.SelectionHints;
5
6 public class RowSelectionItem extends AdaptableHintContext {
7         int rowIndex;
8         int columnIndex[];
9         TreeNode item;
10         
11         public RowSelectionItem(TreeNode item, int rowIndex, int columnIndex[]) {
12                 super(SelectionHints.KEY_MAIN);
13                 this.item = item;
14                 this.rowIndex = rowIndex;
15                 this.columnIndex = columnIndex;
16                 setHint(SelectionHints.KEY_MAIN,item);
17         }
18         
19         public TreeNode getItem() {
20                 return item;
21         }
22         public int getRowIndex() {
23                 return rowIndex;
24         }
25         
26         public int[] getColumnIndex() {
27                 return columnIndex;
28         }
29 }