/**
 * PIMNote class
 *
 * a PIMNote includes a note (string)
 */

public class PIMNote extends PIMEntity {
  String theNote;

  /**
   * default constructor should probably not be used (it sets all the fields
   * to default values, this is probably not useful...)
   */

  PIMNote() {
	super();
	theNote = "default note";
  }

  /**
   * useful constructor, all field values are specified.
   *
   * @param note is the description of the note item
   * @param priority is the priority string
   * @param owner is the name of the owner
   * @param shared indicates whether this is public or private
   */

  PIMNote(String note, String prio, String owner, boolean shared) {
	super(prio,owner,shared);
	theNote = note;
  }

  /**
   * accessor method returns the note string
   */

  public String getNote() {
	return theNote;
  }

  /**
   *  method used to change the note string
   */

  public void setNote(String note) {
	theNote = note;
  }

  /** 
   * returns a string that contains all the fields formatted for printing.
   */

  public String toString() {
	return "-------PIMNote------\n" +
	  "Note: " + theNote + "\n" + super.toString();
  }
}

