de.jface.remind.core
Interface NoteContainer


public interface NoteContainer

The NoteContainer is used as a container, to save the notes using a Storage object. It is not derived from the Java Collections API, because it is important, that this container contains only objects of type Note. It is a kind of typed Collection.

There is no guarantee, that the order of the notes remains constant over time.

Version:
$Revision: 1.1 $
Author:
Moritz Petersen

Method Summary
 void addNote(Note note)
          Adds a note to the container.
 void clear()
          Removes all notes from the container.
 NoteIterator getNoteIterator()
          Returns an iterator, that returns all notes.
 void remove(Note note)
          Removes the specific note from the container.
 

Method Detail

addNote

public void addNote(Note note)
Adds a note to the container.
Parameters:
note - the note that is newly added to the container.

clear

public void clear()
Removes all notes from the container.

getNoteIterator

public NoteIterator getNoteIterator()
Returns an iterator, that returns all notes.

remove

public void remove(Note note)
Removes the specific note from the container.
Parameters:
note - the note that will be removed.


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