multivalent.std

Class Note

public class Note extends Behavior

Show a PostIt-like note in a VFrame. If URI attribute set, content taken from, and if file:/// written to, to that file, which may be of any document type. Otherwise, saved inline as lines of ASCII (tree: content containing line+). Annotations are saved simply by recursing.

Version: $Revision: 1.8 $ $Date: 2002/02/17 18:23:33 $

Field Summary
static StringATTR_CLOSED
static StringATTR_FLOATING
protected static Colordefbg_
protected static Colordeffg_
protected Documentdoc_
Document nested in VFrame.
static StringMSG_BACKGROUND
Set background color of note.
static StringMSG_DELETE
Delete note.
static StringMSG_SET_PINNED
Pin/unpin note to associate document visually.
static StringMSG_SHOW
Show note (visibile = true).
protected static Randomrandom
protected booleanviz_
Visible on screen or available in menu.
protected VFramewin_
Floating window.
Method Summary
voidbuildAfter(Document doc)
Recurse to nested document.
voidbuildBefore(Document doc)
Recurse to nested document.
voiddestroy()
Remove window node too.
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
ESISNodesave()
booleansemanticEventAfter(SemanticEvent se, String msg)
Catch corresponding VFrame's windowClosed, windowRaised, ....
booleansemanticEventBefore(SemanticEvent se, String msg)
Change background color, pinned status, ....

Field Detail

ATTR_CLOSED

public static final String ATTR_CLOSED

ATTR_FLOATING

public static final String ATTR_FLOATING

defbg_

protected static Color defbg_

deffg_

protected static Color deffg_

doc_

protected Document doc_
Document nested in VFrame.

MSG_BACKGROUND

public static final String MSG_BACKGROUND
Set background color of note.

"editBackgroundColor": arg= java.awt.Color / java.lang.String color, in= Note Note-instance.

MSG_DELETE

public static final String MSG_DELETE
Delete note.

"deleteNote": in= Note Note-instance.

MSG_SET_PINNED

public static final String MSG_SET_PINNED
Pin/unpin note to associate document visually.

"windowSetPinned": in= Note Note-instance.

MSG_SHOW

public static final String MSG_SHOW
Show note (visibile = true).

"showNote": in= Note Note-instance.

random

protected static final Random random

viz_

protected boolean viz_
Visible on screen or available in menu.

win_

protected VFrame win_
Floating window.

Method Detail

buildAfter

public void buildAfter(Document doc)
Recurse to nested document.

buildBefore

public void buildBefore(Document doc)
Recurse to nested document.

destroy

public void destroy()
Remove window node too.

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

save

public ESISNode save()

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
Catch corresponding VFrame's windowClosed, windowRaised, ....

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)
Change background color, pinned status, ....