Class NoteBook

java.lang.Object
  |
  +--NoteBook
All Implemented Interfaces:
java.io.Serializable

public class NoteBook
extends java.lang.Object
implements java.io.Serializable

This class handlles the whole notebook. It contains instances of StickyNote.
Author: Neil Short

See Also:
Serialized Form

Field Summary
 Iterator iterator
           
 
Constructor Summary
NoteBook()
           
 
Method Summary
 void add(StickyNote n)
          same as AddSticky()
 void addSticky(StickyNote n)
          append a stickynote to the list
 void deleteSticky(int n)
           
 java.lang.String getFilename()
          When an instance of this class is saved, this class provides for remembering the filename.
 int getSize()
           
 StickyNote getSticky(int n)
           
 boolean getWordwrapIsOn()
           
 void setFilename(java.lang.String fn)
          When an instance of this class is saved, this class provides for remembering the filename.
 void setWordWrap(boolean x)
          set to true to turn wordwrapping on.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iterator

public Iterator iterator
Constructor Detail

NoteBook

public NoteBook()
Method Detail

setWordWrap

public void setWordWrap(boolean x)
set to true to turn wordwrapping on.


getWordwrapIsOn

public boolean getWordwrapIsOn()

getFilename

public java.lang.String getFilename()
When an instance of this class is saved, this class provides for remembering the filename. This method retrieves it.


setFilename

public void setFilename(java.lang.String fn)
When an instance of this class is saved, this class provides for remembering the filename. This method sets it.


add

public void add(StickyNote n)
same as AddSticky()


addSticky

public void addSticky(StickyNote n)
append a stickynote to the list


getSticky

public StickyNote getSticky(int n)

getSize

public int getSize()

deleteSticky

public void deleteSticky(int n)

toString

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