Webnote

Class workspace

Object
   |
   +--workspace

class workspace


A class that represents the workspace. This includes maintaining information about the notes and undo/redo information.
Defined in webnote.js


Field Summary
 boolean changed
          Have we changed the workspace?
 Note edit
          The note we are editing.
 int loadedTime
          The last time that we loaded this workspace (used to check for update collision).
 string name
          The name of the workspace.
 int nextNoteNum
          When creating new notes, we sometimes need to assign a random name to it.
 dictionary notes
          A dictionary of all the notes.
 int numNotes
          Number of notes on the workspace.
 boolean shortcuts
          Should keyboard shortcuts work?
 string topId
          The id of the note on top.
 
Constructor Summary
workspace ()
           
 
Method Summary
 void _expose()
          
 void checkUpdated()
           Checks to see if the notes have changed since the last time we loaded the notes.
 Object createNote(<dictionary> note)
           Create a new note.
 void editOff()
           If we are editing any note, stop editing.
 void expose()
           This function acts as an "Expose`" like feature for the notes It sets all of the notes to relative positioning and then grabs the relative location, sets its "top" and "left" properties then resets the positioning to absolute.
 void filter(<string> text)
           Filter the visible notes (kind of like a search).
 void history()
          
 void loadlist(<int> offset)
           Create the "load old notes" note.
 Object mouse()
          
 void mouseUp()
           Mouse up action on the workspace.
 void notePos()
          
 void reZOrder(<string> topNoteID)
           Resort the notes and place topNoteID in front.
 void save()
           Save the workspace.
 void selectNote(<int> diff)
           Get the next (or previous) note relative to the top note.
 void setName(<string> n)
           Set the name of the workspace.
 string toString()
           Generate the xml representation of the workspace (used when saving).
 void updateMiniBox()
           Update the background color and tool tips of the mini notes.

Field Detail

changed

boolean changed

edit

Note edit

loadedTime

int loadedTime

name

string name

nextNoteNum

int nextNoteNum

notes

dictionary notes

numNotes

int numNotes

shortcuts

boolean shortcuts

topId

string topId

Constructor Detail

workspace

workspace()

Method Detail

_expose

void _expose()

checkUpdated

void checkUpdated()

createNote

Object createNote(<dictionary> note)

editOff

void editOff()

expose

void expose()

filter

void filter(<string> text)

history

void history()

loadlist

void loadlist(<int> offset)

mouse

Object mouse()

mouseUp

void mouseUp()

notePos

void notePos()

reZOrder

void reZOrder(<string> topNoteID)

save

void save()

selectNote

void selectNote(<int> diff)

setName

void setName(<string> n)

toString

string toString()

updateMiniBox

void updateMiniBox()

Webnote

Documentation generated by JSDoc on Tue May 24 23:13:22 2005