home *** CD-ROM | disk | FTP | other *** search
- package cal;
-
- public class Entry {
- String hour;
- String description;
- String color;
-
- public Entry(String hour) {
- this.hour = hour;
- this.description = "";
- }
-
- public String getHour() {
- return this.hour;
- }
-
- public String getColor() {
- return this.description.equals("") ? "lightblue" : "red";
- }
-
- public String getDescription() {
- return this.description.equals("") ? "None" : this.description;
- }
-
- public void setDescription(String descr) {
- this.description = descr;
- }
- }
-