Class NoteBook0211

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

public class NoteBook0211
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
NoteBook0211()
           
 
Method Summary
 void add(StickyNote n)
          same as AddSticky()
 void addSticky(StickyNote n)
          append a stickynote to the list
 void append(NoteBook0211 nb)
          Join two NoteBook0211s
 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 makeEmpty()
          empty the notebook
 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

NoteBook0211

public NoteBook0211()
Method Detail

makeEmpty

public void makeEmpty()
empty the notebook


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


append

public void append(NoteBook0211 nb)
Join two NoteBook0211s


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