1 package org.columba.calendar.base; 19 20 import java.awt.Color ; 21 22 import javax.swing.Icon ; 23 24 import org.columba.calendar.base.api.ICalendarItem; 25 26 27 public class CalendarItem implements ICalendarItem { 28 private String name; 29 30 private String id; 31 32 private Color color; 33 34 private boolean selected; 35 36 private TYPE type; 37 38 public CalendarItem(String id, ICalendarItem.TYPE type, String name, Color color) { 39 this.id = id; 40 this.type = type; 41 this.name = name; 42 this.color = color; 43 } 44 45 48 public Color getColor() { 49 return color; 50 } 51 52 55 public String getId() { 56 return id; 57 } 58 59 62 public String getName() { 63 return name; 64 } 65 66 public void setSelected(boolean selected) { 67 this.selected = selected; 68 } 69 70 public Icon getIcon() { 71 return null; 72 } 73 74 public boolean isSelected() { 75 return selected; 76 } 77 78 public String toString() { 79 return name; 80 } 81 82 public void setColor(Color color) { 83 this.color = color; 84 } 85 86 public TYPE getType() { 87 return type; 88 } 89 } 90 | Popular Tags |