Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## multivalent.std
Class DisableTree

    java.lang.Object
      multivalent.VObject
          multivalent.Behavior
              multivalent.std.DisableTree

public class DisableTree
extends Behavior

Set as observer on tree node to disable action in that subtree: shortcircuits events, visually grays out content. Used to disable buttons.

Version:
  $Revision: 1.3 $ $Date: 2002/02/01 04:17:26 $

Field Summary

Fields inherited from class multivalent.Behavior
`ATTR_BEHAVIOR, name_`

Fields inherited from class multivalent.VObject
`attr_`

Constructor Summary
`DisableTree()`

Method Summary
`boolean` | `eventAfter(java.awt.AWTEvent e, java.awt.Point rel, Node obsn)` During `Behavior.eventBefore(AWTEvent, Point, Node)`, the behaviors that take primary action to that event should do so, after having given other behaviors the opportunity to filter it during `eventBefore`.
`boolean` | `eventBefore(java.awt.AWTEvent e, java.awt.Point rel, Node obsn)`
`boolean` | `paintAfter(Context cx, Node n)` A tree walk protocol, called before observed node has been painted.

Methods inherited from class multivalent.Behavior
`buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintBefore, putPreference, redo, restore, restoreChildren, save, semanticEventAfter, semanticEventBefore, 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`

Constructor Detail

### DisableTree

    public DisableTree()

Method Detail

### paintAfter

    public boolean paintAfter(Context cx,
                              Node n)

  Description copied from class: `Behavior`
  A tree walk protocol, called before observed node has been painted. Called in same coordinate space as node's painting. Use to draw annotations at node's location. For instance, Search uses this to decorate the scrollbar (a type of node) with location of matches.

  Overrides:
    `paintAfter` in class `Behavior`

### eventBefore

    public boolean eventBefore(java.awt.AWTEvent e,
                               java.awt.Point rel,
                               Node obsn)

  Overrides:
    `eventBefore` in class `Behavior`
  See Also:
    `SemanticEvent`, `AWTEvent`, `Browser`, `LensMan`

### eventAfter

    public boolean eventAfter(java.awt.AWTEvent e,
                              java.awt.Point rel,
                              Node obsn)

  Description copied from class: `Behavior`
  During `Behavior.eventBefore(AWTEvent, Point, Node)`, the behaviors that take primary action to that event should do so, after having given other behaviors the opportunity to filter it during `eventBefore`.

  Overrides:
    `eventAfter` in class `Behavior`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Multivalent API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD