1
|
1 package de.mpiwg.itgroup.ismi.utils;
|
|
2
|
|
3 import java.io.Serializable;
|
|
4
|
|
5 public class SelectableObject<N> implements Serializable{
|
|
6
|
|
7 private static final long serialVersionUID = 1L;
|
|
8
|
|
9 private boolean selected;
|
|
10 private N obj;
|
|
11 private String label;
|
|
12
|
|
13 public SelectableObject(N obj){
|
|
14 this.obj = obj;
|
|
15 this.selected = false;
|
|
16 }
|
|
17
|
|
18 public SelectableObject(N obj, String label){
|
|
19 this.obj = obj;
|
|
20 this.selected = false;
|
|
21 this.label = label;
|
|
22 }
|
|
23
|
|
24 public boolean isSelected() {
|
|
25 return selected;
|
|
26 }
|
|
27 public void setSelected(boolean selected) {
|
|
28 this.selected = selected;
|
|
29 }
|
|
30 public N getObj() {
|
|
31 return obj;
|
|
32 }
|
|
33 public void setObj(N obj) {
|
|
34 this.obj = obj;
|
|
35 }
|
|
36 public String getLabel() {
|
|
37 return label;
|
|
38 }
|
|
39 public void setLabel(String label) {
|
|
40 this.label = label;
|
|
41 }
|
|
42 }
|