Source Code Cross Referenced for LogFile.java in  » Development » Tracelog » net » sourceforge » tracelog » config » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » Tracelog » net.sourceforge.tracelog.config 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.sourceforge.tracelog.config;
002:
003:        import java.io.Serializable;
004:
005:        import net.sourceforge.tracelog.utils.Util;
006:
007:        /**
008:         * LogFile is a value object that contains information about the log, such as
009:         * log name, log file path and the color of log text (when displayed).
010:         * 
011:         * @author Choon-Chern Lim (Mike)
012:         */
013:        public class LogFile implements  Serializable {
014:            private static final long serialVersionUID = 5339819668361806191L;
015:            public int backgroundColor;
016:            public int foregroundColor;
017:            public String id;
018:            public String logName;
019:            public int logOrder;
020:            public String logPath;
021:
022:            public LogFile() {
023:                this (0, "", "", 0, 0);
024:            }
025:
026:            public LogFile(int logOrder, String logName, String logPath,
027:                    int foregroundColor, int backgroundColor) {
028:                this .logOrder = logOrder;
029:                this .logName = logName;
030:                this .logPath = logPath;
031:                this .foregroundColor = foregroundColor;
032:                this .backgroundColor = backgroundColor;
033:                this .id = Util.getUniqueId();
034:            }
035:
036:            /**
037:             * @return the backgroundColor
038:             */
039:            public int getBackgroundColor() {
040:                return backgroundColor;
041:            }
042:
043:            /**
044:             * @return the foregroundColor
045:             */
046:            public int getForegroundColor() {
047:                return foregroundColor;
048:            }
049:
050:            /**
051:             * @return the id
052:             */
053:            public String getId() {
054:                return id;
055:            }
056:
057:            /**
058:             * @return the logName
059:             */
060:            public String getLogName() {
061:                return logName;
062:            }
063:
064:            /**
065:             * @return the logOrder
066:             */
067:            public int getLogOrder() {
068:                return logOrder;
069:            }
070:
071:            /**
072:             * @return the logPath
073:             */
074:            public String getLogPath() {
075:                return logPath;
076:            }
077:
078:            /**
079:             * @param backgroundColor
080:             *            the backgroundColor to set
081:             */
082:            public void setBackgroundColor(int backgroundColor) {
083:                this .backgroundColor = backgroundColor;
084:            }
085:
086:            /**
087:             * @param foregroundColor
088:             *            the foregroundColor to set
089:             */
090:            public void setForegroundColor(int foregroundColor) {
091:                this .foregroundColor = foregroundColor;
092:            }
093:
094:            /**
095:             * @param id
096:             *            the id to set
097:             */
098:            public void setId(String id) {
099:                this .id = id.trim();
100:            }
101:
102:            /**
103:             * @param logName
104:             *            the logName to set
105:             */
106:            public void setLogName(String logName) {
107:                this .logName = logName.trim();
108:            }
109:
110:            /**
111:             * @param logOrder
112:             *            the logOrder to set
113:             */
114:            public void setLogOrder(int logOrder) {
115:                this .logOrder = logOrder;
116:            }
117:
118:            /**
119:             * @param logPath
120:             *            the logPath to set
121:             */
122:            public void setLogPath(String logPath) {
123:                this.logPath = logPath.trim();
124:            }
125:
126:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.