home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / Entry.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-05-17  |  885 b   |  29 lines

  1. package cal;
  2.  
  3. public class Entry {
  4.    String hour;
  5.    String description;
  6.    String color;
  7.  
  8.    public Entry(String hour) {
  9.       this.hour = hour;
  10.       this.description = "";
  11.    }
  12.  
  13.    public String getHour() {
  14.       return this.hour;
  15.    }
  16.  
  17.    public String getColor() {
  18.       return this.description.equals("") ? "lightblue" : "red";
  19.    }
  20.  
  21.    public String getDescription() {
  22.       return this.description.equals("") ? "None" : this.description;
  23.    }
  24.  
  25.    public void setDescription(String descr) {
  26.       this.description = descr;
  27.    }
  28. }
  29.