de.jface.remind.core
Class Note

java.lang.Object
  |
  +--de.jface.remind.core.Note

public class Note
extends java.lang.Object

The Note represents one note, that can be posted. It contains a text (NoteText) and metadata (NoteMetaData). It is identified using it's metadata, so it can be identified, even if the text has changed.

Version:
$Revision: 1.1 $
Author:
Moritz Petersen

Constructor Summary
Note()
           
Note(NoteMetaData noteMetaData)
          Creates a new Note with a new NoteMetaData.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this instance with the given object.
 NoteMetaData getMetaData()
          Returns the metadata of the note.
 NoteText getText()
          Returns the text of the note.
 void setText(NoteText noteText)
          Sets the text of the note and replaces the old text.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Note

public Note()

Note

public Note(NoteMetaData noteMetaData)
Creates a new Note with a new NoteMetaData.
Method Detail

getText

public NoteText getText()
Returns the text of the note. A newly created note contains an empty text.
Returns:
the text of the note.

setText

public void setText(NoteText noteText)
Sets the text of the note and replaces the old text. If text is null, then the text is not changed.
Parameters:
text - the text of the note. If it is null, then the existing text remains unchanged.

getMetaData

public NoteMetaData getMetaData()
Returns the metadata of the note. The metadata is not changeable.
Returns:
the metadata of the note.

equals

public boolean equals(java.lang.Object o)
Compares this instance with the given object. A note is equal to another note, if the NoteMetaData instances of bothe objects are equal.
Overrides:
equals in class java.lang.Object
Parameters:
o - The object to compare with.
Returns:
true, if both objects are equal, using the NoteMetaData.equals(Object) method.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2002 Moritz Petersen. All Rights Reserved.