|
Webnote | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--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 |
boolean changed
Note edit
int loadedTime
string name
int nextNoteNum
dictionary notes
int numNotes
boolean shortcuts
string topId
Constructor Detail |
workspace()
Method Detail |
void _expose()
void checkUpdated()
Object createNote(<dictionary> note)
note
- a dictionary with any of the following keys: note['id'] = the name of the notevoid editOff()
void expose()
void filter(<string> text)
text
- the regular expression to filter by
void history()
void loadlist(<int> offset)
offset
- how many saves do we want to go back?
Object mouse()
void mouseUp()
void notePos()
void reZOrder(<string> topNoteID)
topNoteID
- the name of the note to bring to the front.
void save()
void selectNote(<int> diff)
diff
- The offset from the top note (positive mean below and negative mean up from the bottom note).
void setName(<string> n)
n
- the new name
string toString()
void updateMiniBox()
|
Webnote | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |