|
Multivalent API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmultivalent.VObject
multivalent.Behavior
multivalent.std.Note
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.
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_CLOSED
|
static java.lang.String |
ATTR_FLOATING
|
protected static java.awt.Color |
defbg_
|
protected static java.awt.Color |
deffg_
|
protected Document |
doc_
Document nested in VFrame. |
static java.lang.String |
MSG_BACKGROUND
Set background color of note. |
static java.lang.String |
MSG_DELETE
Delete note. |
static java.lang.String |
MSG_SET_PINNED
Pin/unpin note to associate document visually. |
static java.lang.String |
MSG_SHOW
Show note (visibile = true). |
protected static java.util.Random |
random
|
protected boolean |
viz_
Visible on screen or available in menu. |
protected VFrame |
win_
Floating window. |
| Fields inherited from class multivalent.Behavior |
|---|
ATTR_BEHAVIOR, name_ |
| Fields inherited from class multivalent.VObject |
|---|
attr_ |
| Constructor Summary | |
|---|---|
Note()
|
|
| Method Summary | |
|---|---|
void |
buildAfter(Document doc)
Recurse to nested document. |
void |
buildBefore(Document doc)
Recurse to nested document. |
void |
destroy()
Remove window node too. |
Node |
getContent()
|
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation. |
ESISNode |
save()
Build up save data as ESIS tree, then write that out. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Catch corresponding VFrame's windowClosed, windowRaised, .... |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Change background color, pinned status, .... |
| Methods inherited from class multivalent.Behavior |
|---|
checkRep, clipboardAfter, clipboardBefore, createUI, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restoreChildren, setName, toString, undo |
| Methods inherited from class multivalent.VObject |
|---|
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MSG_SHOW
"showNote": arg= Boolean (or null to toggle), in= Note Note-instance.
public static final java.lang.String MSG_DELETE
"deleteNote": in= Note Note-instance.
public static final java.lang.String MSG_SET_PINNED
"windowSetPinned": arg= Boolean (or null to toggle), in= Note Note-instance.
public static final java.lang.String MSG_BACKGROUND
"editBackgroundColor": arg= Color / String color, in= Note Note-instance.
public static final java.lang.String ATTR_CLOSED
public static final java.lang.String ATTR_FLOATING
protected static java.awt.Color deffg_
protected static java.awt.Color defbg_
protected static final java.util.Random random
protected VFrame win_
protected Document doc_
protected boolean viz_
| Constructor Detail |
|---|
public Note()
| Method Detail |
|---|
public Node getContent()
public void buildBefore(Document doc)
buildBefore in class BehaviorMarkpublic void buildAfter(Document doc)
buildAfter in class Behavior
public boolean semanticEventBefore(SemanticEvent se,
java.lang.String msg)
semanticEventBefore in class Behavior
public boolean semanticEventAfter(SemanticEvent se,
java.lang.String msg)
semanticEventAfter in class Behaviorpublic void destroy()
destroy in class Behavior
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Behavior
restore in class Behaviorpublic ESISNode save()
Behaviorsuper.save().
Always have Behavior.ATTR_BEHAVIOR from save (short) classname.
save in class Behavior
|
Multivalent API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||