1 19 20 package org.lucane.applications.todolist; 21 22 import java.io.Serializable ; 23 24 public class Todolist implements Serializable { 25 private int id; 26 private String userName; 27 private String name; 28 private String comment; 29 private boolean readOnly; 30 31 public Todolist(String userName, String name, String comment) { 32 this(-1, userName, name, comment); 33 } 34 35 public Todolist(int id, String userName, String name, String comment) { 36 this(id, userName, name, comment, false); 37 } 38 39 public Todolist(int id, String userName, String name, String comment, boolean readOnly) { 40 this.id = id; 41 this.userName = userName; 42 this.name = name; 43 this.comment = comment; 44 this.readOnly = readOnly; 45 } 46 47 public int getId() { 48 return id; 49 } 50 public String getUserName() { 51 return userName; 52 } 53 public String getComment() { 54 return comment; 55 } 56 public String getName() { 57 return name; 58 } 59 public boolean isReadOnly() { 60 return readOnly; 61 } 62 63 public void setId(int i) { 64 id = i; 65 } 66 public void setUserName(String string) { 67 userName = string; 68 } 69 public void setComment(String string) { 70 comment = string; 71 } 72 public void setName(String string) { 73 name = string; 74 } 75 public String toString() { 76 return getName(); 77 } 78 } 79 | Popular Tags |