multivalent.std.ui

Class SpanUI

public class SpanUI extends Behavior

Create a instance of Span describe by hub attributes and move to extent of current selection. See fields starting with ATTR_PARENT for hub attributes available.

Version: $Revision: 1.2 $ $Date: 2002/02/01 05:26:27 $

See Also: SemanticUI WindowUI

Field Summary
static StringATTR_ATTRS
Hub attribute that gives the new Span's additional attributes.
static StringATTR_CATEGORY
Hub attribute that sets category group within menu.
static StringATTR_CREATEDAT
Newly created attribute that records creation time, as given by System#currentTimeMillis().
static StringATTR_EDIT
Hub attribute that, if present, immediately invokes editing by user to set other attributes.
static StringATTR_LOGICAL
Hub attribute that gives new Span's logical name.
static StringATTR_PARENT
Hub attribute that gives menu (createWidget/parent).
static StringATTR_SPANNAME
Hub attribute that gives new Span's Java class name (which must be a Span).
static StringATTR_TITLE
Hub attribute that gives text to show in menu.
static StringMSG_CREATE
Create a instance of Span describe by hub attributes and move to extent of current selection.
Method Summary
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
booleansemanticEventAfter(SemanticEvent se, String msg)
On "createSpan", create span.
booleansemanticEventBefore(SemanticEvent se, String msg)

Field Detail

ATTR_ATTRS

public static final String ATTR_ATTRS
Hub attribute that gives the new Span's additional attributes.

ATTR_CATEGORY

public static final String ATTR_CATEGORY
Hub attribute that sets category group within menu.

ATTR_CREATEDAT

public static final String ATTR_CREATEDAT
Newly created attribute that records creation time, as given by System#currentTimeMillis().

ATTR_EDIT

public static final String ATTR_EDIT
Hub attribute that, if present, immediately invokes editing by user to set other attributes.

ATTR_LOGICAL

public static final String ATTR_LOGICAL
Hub attribute that gives new Span's logical name.

ATTR_PARENT

public static final String ATTR_PARENT
Hub attribute that gives menu (createWidget/parent).

ATTR_SPANNAME

public static final String ATTR_SPANNAME
Hub attribute that gives new Span's Java class name (which must be a Span).

ATTR_TITLE

public static final String ATTR_TITLE
Hub attribute that gives text to show in menu.

MSG_CREATE

public static final String MSG_CREATE
Create a instance of Span describe by hub attributes and move to extent of current selection.

"createSpan": arg= SpanUI this.

Method Detail

restore

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

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)
On "createSpan", create span.

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)