Multivalent API

multivalent.std.ui
Class ForwardBack

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.std.ui.ForwardBack

public class ForwardBack
extends Behavior

Move forward and backward through documents browsed, via toolbar buttons, menubar items, document popup. Can't have generic scriptable UI on toolbar buttons as want to have button list pages so can skip intermediate.

To do: update this for FRAMEs => store history in Document's parent?

Version:
$Revision: 1.7 $ $Date: 2002/01/16 04:48:28 $

Field Summary
static java.lang.String MSG_BACKWARD
          Request to move back a page in the browsing history.
static java.lang.String MSG_FORWARD
          Request to move forward a page in the browsing history.
static java.lang.String MSG_OPEN_DOCUMENTS
          Add list of URIs to next document menu.
 
Fields inherited from class multivalent.Behavior
ATTR_BEHAVIOR, name_
 
Fields inherited from class multivalent.VObject
attr_
 
Constructor Summary
ForwardBack()
           
 
Method Summary
 void moveDelta(int delta)
           
 void moveTo(int newpagesi)
           
 boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
          Round robin distribution to all behaviors.
 boolean semanticEventBefore(SemanticEvent se, java.lang.String msg)
          Round robin distribution to all behaviors.
 
Methods inherited from class multivalent.Behavior
buildAfter, 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

MSG_BACKWARD

public static final java.lang.String MSG_BACKWARD
Request to move back a page in the browsing history.

"backwardDocument"

See Also:
Constant Field Values

MSG_FORWARD

public static final java.lang.String MSG_FORWARD
Request to move forward a page in the browsing history.

"forwardDocument"

See Also:
Constant Field Values

MSG_OPEN_DOCUMENTS

public static final java.lang.String MSG_OPEN_DOCUMENTS
Add list of URIs to next document menu. Used by slide show.

"openDocuments": arg= List URIs.

See Also:
SlideShow, Constant Field Values
Constructor Detail

ForwardBack

public ForwardBack()
Method Detail

moveDelta

public void moveDelta(int delta)

moveTo

public void moveTo(int newpagesi)

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se,
                                   java.lang.String msg)
Description copied from class: Behavior
Round robin distribution to all behaviors. Message and clientData unpacked from SemanticEvent for convenience. Message is interned, so if you compare to a literal, you can use "==". Message can't be changed (it can be short-circuited out of), but client data can be mutated as it is passed along (so it's not passed as a parameter).

Overrides:
semanticEventBefore in class Behavior

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se,
                                  java.lang.String msg)
Description copied from class: Behavior
Round robin distribution to all behaviors. Message and clientData unpacked from SemanticEvent for convenience. Message is interned, so if you compare to a literal, you can use "==". Message can't be changed (it can be short-circuited out of), but client data can be mutated as it is passed along (so it's not passed as a parameter).

Overrides:
semanticEventAfter in class Behavior

Multivalent API