|
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.LinkMarkup
For plain Jane document formats without hyperlinks, scan text looking for patterns to make into links, such as "protocol://host.domain", "www.host.domain", "ftp.host.domain", "user@host.domain". Manual pages not referred to much outside of other man pages, so that scanning left with that media adaptor. Better to be conservative and fast than exact, as also have alt-button-on-word for dynamic determination of a link type. Not necessary as can always treat any text as some link with the LinkMe behavior.
LATER: use regexp, load patterns from hub (then easy to inclue man pages or not), look for email and USENET quoted text.
LinkMe
Field Summary | |
---|---|
static java.lang.String |
MSG_LINKSCAN
Scan for implicit links. |
static java.lang.String |
MSG_SET_ACTIVE
Sets active state on/off. |
static java.util.regex.Pattern |
PATTERN
|
static java.lang.String |
PREF_AUTO
Boolean. |
Fields inherited from class multivalent.Behavior |
---|
ATTR_BEHAVIOR, name_ |
Fields inherited from class multivalent.VObject |
---|
attr_ |
Constructor Summary | |
---|---|
LinkMarkup()
|
Method Summary | |
---|---|
void |
buildAfter(Document doc)
Traverses all behaviors from lowest to highest priority, during which tweaks hack their content into the tree, |
boolean |
isActive()
|
void |
scan()
|
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Semantic events: toggleLinkScan, closeDocument cleans up link list. |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Add entry to View menu. |
void |
setActive(boolean active)
|
Methods inherited from class multivalent.Behavior |
---|
buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restore, restoreChildren, save, 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_LINKSCAN
"linkScan": arg= HashMap
attributes, in= INode
root of tree, out=unused.
public static final java.lang.String MSG_SET_ACTIVE
"linkScanSetActive": arg= String
or Boolean
or null
to toggle.
public static final java.lang.String PREF_AUTO
public static final java.util.regex.Pattern PATTERN
Constructor Detail |
---|
public LinkMarkup()
Method Detail |
---|
public boolean isActive()
public void scan()
public void setActive(boolean active)
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 Behavior
public void buildAfter(Document doc)
Behavior
buildAfter
in class Behavior
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |