diff src/main/java/de/mpiwg/gazetteer/utils/SelectableObject.java @ 0:3e62083dbcbf

First commit. This project comes from LGServer. We removed the framework icefaces. Now, LGServices uses just JSP and jquery.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 23 Apr 2015 15:46:01 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/de/mpiwg/gazetteer/utils/SelectableObject.java	Thu Apr 23 15:46:01 2015 +0200
@@ -0,0 +1,43 @@
+package de.mpiwg.gazetteer.utils;
+
+import java.io.Serializable;
+
+public class SelectableObject<N> implements Serializable{
+	
+	private static final long serialVersionUID = 1L;
+	
+	private boolean selected;
+	private N obj;
+	private String label;
+	
+	public SelectableObject(N obj){
+		this.obj = obj;
+		this.selected = false;
+	}
+	
+	public SelectableObject(N obj, String label){
+		this.obj = obj;
+		this.selected = false;
+		this.label = label;
+	}
+	
+	public boolean isSelected() {
+		return selected;
+	}
+	public void setSelected(boolean selected) {
+		this.selected = selected;
+	}
+	public N getObj() {
+		return obj;
+	}
+	public void setObj(N obj) {
+		this.obj = obj;
+	}
+	public String getLabel() {
+		return label;
+	}
+	public void setLabel(String label) {
+		this.label = label;
+	}
+}
+