View Javadoc

1   package de.jaret.examples.timebars.events.model;
2   
3   import de.jaret.util.date.Event;
4   import de.jaret.util.date.JaretDate;
5   
6   /***
7    * An extension of the general event holding a label.
8    * 
9    * @author kliem
10   * @version $Id: FancyEvent.java 563 2007-09-15 18:52:33Z olk $
11   */
12  public class SampleEvent extends Event {
13      String _label;
14  
15      
16      public SampleEvent(JaretDate date) {
17          super(date);
18      }
19  
20      
21      public String getLabel() {
22          return _label;
23      }
24  
25      public void setLabel(String label) {
26          String oldVal = _label;
27          _label = label;
28          if (isRealModification(oldVal, label)) {
29          	firePropertyChange("Label", null, label);
30          }
31      }
32  }