Class NoteBook0312

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

public class NoteBook0312
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
NoteBook0312()
           
 
Method Summary
 void add(StickyNote n)
          same as AddSticky()
 void addSticky(StickyNote n)
          append a stickynote to the list
 void append(NoteBook0312 nb)
          Join two NoteBook0312s
 void deleteSticky(int n)
           
 java.lang.String getFilename()
          When an instance of this class is saved, this class provides for remembering the filename.
 java.lang.String getPassword()
           
 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 setPassword(java.lang.String pw)
           
 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

NoteBook0312

public NoteBook0312()
Method Detail

setPassword

public void setPassword(java.lang.String pw)

getPassword

public java.lang.String getPassword()

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(NoteBook0312 nb)
Join two NoteBook0312s


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