multivalent.std.ui

Class SemanticUI

public class SemanticUI extends Behavior

Generates from a hub description UI elements that trigger a semantic event when activated.

A good portion of the functionality of the system can be triggered by lone semantic event. It's easy to add a menu item or button that fires a semantic event with a line in a hub document. In fact, much of the default system is built that way. For instance, the menu item named "Home" that shows your home page is generated with the following line in the system hub:

<MenuItem Behavior=SemanticUI event="goHome" title="Home" category="GoInter" />

Likewise, the Home button is generated with the following:

<Button Behavior=SemanticUI event="goHome" title="" category="Toolbar" script='goHome' />

Version: $Revision: 1.2 $ $Date: 2002/02/01 06:04:05 $

See Also: SemanticEvent

Field Summary
static StringATTR_CATEGORY
Hub attribute that sets category group within menu.
static StringATTR_GENERATE
Hub attribute to set name of dynamic menu of VMenubutton widgets.
static StringATTR_PARENT
Hub attribute that gives menu (createWidget/parent).
static StringATTR_SCRIPT
Hub attribute to set VScript script to execute when widget is activated.
static StringATTR_TITLE
Hub attribute that gives text to show in menu.
static StringATTR_TYPE
Hub attribute to set type of widget as acceptable by Behavior.
static StringATTR_WIDTH
Hub attribute to set width of VEntry widgets.
Method Summary
booleansemanticEventBefore(SemanticEvent se, String msg)

Field Detail

ATTR_CATEGORY

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

ATTR_GENERATE

public static final String ATTR_GENERATE
Hub attribute to set name of dynamic menu of VMenubutton widgets.

ATTR_PARENT

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

ATTR_SCRIPT

public static final String ATTR_SCRIPT
Hub attribute to set VScript script to execute when widget is activated.

ATTR_TITLE

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

ATTR_TYPE

public static final String ATTR_TYPE
Hub attribute to set type of widget as acceptable by Behavior.

ATTR_WIDTH

public static final String ATTR_WIDTH
Hub attribute to set width of VEntry widgets.

Method Detail

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)