multivalent.std.span

Class OutlineSpan

public class OutlineSpan extends Span

Assumes LeafImage as first node, which shows open or closed arrow. Set elide=false in style sheet for headers. Fault in by observing outlineOpen event on that span (getArg()==this span), building up content, moving span's end to end of content. Nested by setting level: 1=topmost, 2=nested, 3=doubly nested, ... Searching needs to fault in all.

Version: $Revision: 1.3 $ $Date: 2002/02/02 13:16:27 $

See Also: Outliner OutlineUI ManualPageVolume ManualPage History

Field Summary
static StringATTR_LEVEL
static StringATTR_OPEN
intlevel
static StringMSG_CLOSE
Close outline span.
static StringMSG_CLOSE_ALL
Close all outline spans.
static StringMSG_OPEN
Open outline span.
static StringMSG_OPEN_ALL
Open all outline span.
static StringMSG_TOGGLE
Toggle outline span.
Method Summary
booleanappearance(Context cx, boolean all)
booleaneventAfter(AWTEvent e, Point rel, Node obsn)
When click, resolve click to leaf, undo elision, scroll to leaf.
intgetPriority()
Lower priority than style sheet-based settings.
booleanisOpen()
voidmoveq(Leaf ln, int lo, Leaf rn, int ro)
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
booleansemanticEventAfter(SemanticEvent se, String msg)
voidsetClosed(boolean active)

Field Detail

ATTR_LEVEL

public static final String ATTR_LEVEL

ATTR_OPEN

public static final String ATTR_OPEN

level

public int level

MSG_CLOSE

public static final String MSG_CLOSE
Close outline span.

"outlineClose": arg= Span span-to-close.

MSG_CLOSE_ALL

public static final String MSG_CLOSE_ALL
Close all outline spans.

"outlineCloseAll".

MSG_OPEN

public static final String MSG_OPEN
Open outline span.

"outlineOpen": arg= Span span-to-open.

MSG_OPEN_ALL

public static final String MSG_OPEN_ALL
Open all outline span.

"outlineOpenAll".

MSG_TOGGLE

public static final String MSG_TOGGLE
Toggle outline span.

"outlineToggle": arg= Span span-to-close.

Method Detail

appearance

public boolean appearance(Context cx, boolean all)

eventAfter

public boolean eventAfter(AWTEvent e, Point rel, Node obsn)
When click, resolve click to leaf, undo elision, scroll to leaf.

getPriority

public int getPriority()
Lower priority than style sheet-based settings. More deeply nested has higher priority so a nested closed overrides a prevailing open. This forces section opening on mouse click to eventAfter so more deepy nested open and scroll last.

isOpen

public boolean isOpen()

moveq

public void moveq(Leaf ln, int lo, Leaf rn, int ro)

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)

setClosed

public void setClosed(boolean active)