multivalent.std.ui
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 String | ATTR_CATEGORY Hub attribute that sets category group within menu. |
static String | ATTR_GENERATE Hub attribute to set name of dynamic menu of VMenubutton widgets. |
static String | ATTR_PARENT Hub attribute that gives menu (createWidget/parent). |
static String | ATTR_SCRIPT Hub attribute to set VScript script to execute when widget is activated. |
static String | ATTR_TITLE Hub attribute that gives text to show in menu. |
static String | ATTR_TYPE Hub attribute to set type of widget as acceptable by Behavior. |
static String | ATTR_WIDTH Hub attribute to set width of VEntry widgets. |
Method Summary | |
---|---|
boolean | semanticEventBefore(SemanticEvent se, String msg) |