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 LogBean implements Serializable { 14 private static final long serialVersionUID = 7935235546339138095L; 15 private int logOrder; 16 private int foregroundColor; 17 private int backgroundColor; 18 private String logName; 19 private String logFilePath; 20 private String id; 21 22 30 LogBean(int logOrder, String logName, String logPath, int foregroundColor, int backgroundColor) { 31 this.logOrder = logOrder; 32 this.logName = logName; 33 this.logFilePath = logPath; 34 this.foregroundColor = foregroundColor; 35 this.backgroundColor = backgroundColor; 36 this.id = Util.getUniqueId(); 37 } 38 39 44 public int getForegroundColor() { 45 return foregroundColor; 46 } 47 48 53 public String getLogName() { 54 return logName; 55 } 56 57 62 public String getLogFilePath() { 63 return logFilePath; 64 } 65 66 72 public void setForegroundColor(int foregroundColor) { 73 this.foregroundColor = foregroundColor; 74 } 75 76 82 public void setLogName(String logName) { 83 this.logName = logName; 84 } 85 86 92 public void setLogFilePath(String logPath) { 93 this.logFilePath = logPath; 94 } 95 96 99 public int getLogOrder() { 100 return logOrder; 101 } 102 103 107 public void setLogOrder(int logOrder) { 108 this.logOrder = logOrder; 109 } 110 111 114 public int getBackgroundColor() { 115 return backgroundColor; 116 } 117 118 122 public void setBackgroundColor(int backgroundColor) { 123 this.backgroundColor = backgroundColor; 124 } 125 126 129 public String getId() { 130 return id; 131 } 132 133 137 public void setId(String id) { 138 this.id = id.trim(); 139 } 140 141 } 142 | Popular Tags |