|
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.MediaAdaptor
multivalent.std.adaptor.ML
multivalent.std.adaptor.HTML
Media adaptor for HTML (.html => document tree).
Parts of HTML 4.01 not yet supported:
Use as parser, see instructions in superclass MediaAdaptor
.
Tree looks like this:
Field Summary | |
---|---|
static java.io.FileFilter |
FILTER
|
static java.lang.String |
MSG_FORM_POPULATE
Set values of HTML FORM . |
static java.lang.String |
MSG_FORM_PROCESS
Give chance for client-side processing by another behavior before sending to server. |
static java.lang.String |
MSG_FORM_RESET
Reset settings of HTML FORM . |
static java.lang.String |
MSG_FORM_SUBMIT
Submit HTML FORM to server. |
static int |
TAGTYPE_EMPTY
|
static int |
TAGTYPE_NEST
|
static int |
TAGTYPE_NONEST
|
static int |
TAGTYPE_SPAN
|
static int |
TAGTYPE_UNKNOWN
|
int[] |
TagUse
Number of times open-tag of given id is used in document. |
Fields inherited from class multivalent.std.adaptor.ML |
---|
entity_, errcnt, ir_, ispace, keepComments, keepWhitespace |
Fields inherited from class multivalent.MediaAdaptor |
---|
HINT_DEFAULTS, HINT_EXACT, HINT_FAST, HINT_METADATA_ONLY, HINT_NO_IMAGE, HINT_NO_INTERACTIVE, HINT_NO_LAYOUT, HINT_NO_SHAPE, HINT_NO_SHOW, HINT_NO_STYLE, HINT_NO_TEXT, HINT_NO_TRANSCLUSION, HINT_NONE, HINT_NORMALIZE |
Fields inherited from class multivalent.Behavior |
---|
ATTR_BEHAVIOR, name_ |
Fields inherited from class multivalent.VObject |
---|
attr_ |
Constructor Summary | |
---|---|
HTML()
|
Method Summary | |
---|---|
void |
destroy()
Protocol. |
protected void |
eatSpace()
Overrides because "In HTML, only the following characters are defined as white space characters: ASCII space ( ) ASCII tab ( ) ASCII form feed () Zero-width space ()" ... |
static byte |
getAlign(java.lang.String spec)
|
static java.lang.String |
getEntity(int codepoint)
Return entity corresponding to given Unicode character, if any. |
static int |
getParseType(int tagid)
Parse type is TAGTYPE_EMPTY, TAGTYPE_SPAN, TAGTYPE_NEST, TAGTYPE_NONEST, or TAGTYPE_UNKNOWN if tag is unknown. |
static int |
getParseType(java.lang.String tag)
Less efficient than getParseType(int) . |
static char |
getUnicode(java.lang.String entity)
Return Unicode character corresponding to given HTML entity reference. |
static byte |
getVAlign(java.lang.String spec)
|
static void |
go(Node startn,
java.lang.Object replace,
java.lang.Object ouri)
TARGET-aware hyperlink. |
java.lang.Object |
parse(INode parent)
Normalizes in direction of XHTML: lowercase tag and attribute names, well nested (except for spans), ... |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Form processing. |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Adds LINKs to Go menu and document popup. |
Methods inherited from class multivalent.std.adaptor.ML |
---|
close, eatComment, getEntity, getReader, getTag, getTag, pairsWith, readChar, readString, readString, readString, readString, readStringInternal, setEntity |
Methods inherited from class multivalent.MediaAdaptor |
---|
buildBefore, getHints, getInputUni, getURI, getZoom, isAuthorized, isStopped, parseHelper, setHints, setInput, setInput, setPassword, setZoom, stop |
Methods inherited from class multivalent.Behavior |
---|
buildAfter, checkRep, clipboardAfter, clipboardBefore, createUI, 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_FORM_SUBMIT
FORM
to server.
"submitForm": arg= Node
top-of-form,
public static final java.lang.String MSG_FORM_RESET
FORM
.
"resetForm": arg= Node
top-of-form,
public static final java.lang.String MSG_FORM_PROCESS
"processForm": arg= Map
attributes, in= INode
root of tree, out=unused.
public static final java.lang.String MSG_FORM_POPULATE
FORM
.
"populateForm": arg= Map
attributes, in= Map
name-value pairs.
public static final java.io.FileFilter FILTER
public int[] TagUse
public static final int TAGTYPE_UNKNOWN
public static final int TAGTYPE_EMPTY
public static final int TAGTYPE_SPAN
public static final int TAGTYPE_NEST
public static final int TAGTYPE_NONEST
Constructor Detail |
---|
public HTML()
Method Detail |
---|
public void destroy()
Behavior
destroy
in class MediaAdaptor
public static char getUnicode(java.lang.String entity)
public static java.lang.String getEntity(int codepoint)
public static int getParseType(java.lang.String tag)
getParseType(int)
.
public static int getParseType(int tagid)
public static byte getAlign(java.lang.String spec)
public static byte getVAlign(java.lang.String spec)
protected void eatSpace() throws java.io.IOException
eatSpace
in class ML
java.io.IOException
public java.lang.Object parse(INode parent) throws java.lang.Exception
parse
in class MediaAdaptor
Image
.
However, the primary job of a media adaptor is to add content to the document tree.
java.lang.Exception
for a convenient way to attach spans
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 MediaAdaptor
public static void go(Node startn, java.lang.Object replace, java.lang.Object ouri)
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |