1 package net.sourceforge.tracelog.config; 2 3 import java.io.Serializable ; 4 5 import net.sourceforge.tracelog.utils.Util; 6 7 13 public class LogFile implements Serializable { 14 private static final long serialVersionUID = 5339819668361806191L; 15 public int logOrder; 16 public int foregroundColor; 17 public int backgroundColor; 18 public String logName; 19 public String logPath; 20 public String id; 21 22 public LogFile() { 23 this(0, "", "", 0, 0); 24 } 25 26 public LogFile(int logOrder, String logName, String logPath, int foregroundColor, int backgroundColor) { 27 this.logOrder = logOrder; 28 this.logName = logName; 29 this.logPath = logPath; 30 this.foregroundColor = foregroundColor; 31 this.backgroundColor = backgroundColor; 32 this.id = Util.getUniqueId(); 33 } 34 35 38 public int getBackgroundColor() { 39 return backgroundColor; 40 } 41 42 46 public void setBackgroundColor(int backgroundColor) { 47 this.backgroundColor = backgroundColor; 48 } 49 50 53 public int getForegroundColor() { 54 return foregroundColor; 55 } 56 57 61 public void setForegroundColor(int foregroundColor) { 62 this.foregroundColor = foregroundColor; 63 } 64 65 68 public String getId() { 69 return id; 70 } 71 72 76 public void setId(String id) { 77 this.id = id.trim(); 78 } 79 80 83 public String getLogName() { 84 return logName; 85 } 86 87 91 public void setLogName(String logName) { 92 this.logName = logName.trim(); 93 } 94 95 98 public int getLogOrder() { 99 return logOrder; 100 } 101 102 106 public void setLogOrder(int logOrder) { 107 this.logOrder = logOrder; 108 } 109 110 113 public String getLogPath() { 114 return logPath; 115 } 116 117 121 public void setLogPath(String logPath) { 122 this.logPath = logPath.trim(); 123 } 124 125 } 126 | Popular Tags |