1 package org.gnomekr.potron.util; 2 3 import java.io.Serializable; 4 5 /*** 6 * SelectableTableEntry.java 7 * @author Xavier Cho 8 * @version $Revision 1.1 $ $Date: 2005/07/20 17:41:28 $ 9 */ 10 public class SelectableTableEntry<T extends Serializable> implements 11 Serializable { 12 13 private static final long serialVersionUID = -6815064861833615417L; 14 15 private T data; 16 private boolean selected = false; 17 18 public SelectableTableEntry(T data) { 19 this.data = data; 20 } 21 22 /*** 23 * @return Returns the data. 24 */ 25 public T getData() { 26 return data; 27 } 28 29 /*** 30 * @param data The data to set. 31 */ 32 public void setData(T data) { 33 this.data = data; 34 } 35 36 /*** 37 * @return Returns the selected. 38 */ 39 public boolean isSelected() { 40 return selected; 41 } 42 43 /*** 44 * @param selected The selected to set. 45 */ 46 public void setSelected(boolean selected) { 47 this.selected = selected; 48 } 49 }