multivalent.gui

Class VButton

public class VButton extends IParaBox implements EventListener

Button widget: click to invoke the associated script (as given by SCRIPT attribute). Usable as button and menu item.

Version: $Revision: 1.3 $ $Date: 2002/01/27 01:59:32 $

Constructor Summary
VButton(String name, Map<String,Object> attr, INode parent)
VButton(String name, Map<String,Object> attr, INode parent, String script)
Method Summary
booleanbreakAfter()
booleanbreakBefore()
intdx()
intdy()
voidevent(AWTEvent e)
booleaneventNode(AWTEvent e, Point rel)
booleanformatNode(int width, int height, Context cx)
voidinvoke()
Execute associated VScript, if any.
voidpaintNode(Rectangle docclip, Context cx)

Constructor Detail

VButton

public VButton(String name, Map<String,Object> attr, INode parent)

VButton

public VButton(String name, Map<String,Object> attr, INode parent, String script)

Method Detail

breakAfter

public boolean breakAfter()

breakBefore

public boolean breakBefore()

dx

public int dx()

dy

public int dy()

event

public void event(AWTEvent e)

eventNode

public boolean eventNode(AWTEvent e, Point rel)

formatNode

public boolean formatNode(int width, int height, Context cx)

invoke

public void invoke()
Execute associated VScript, if any. VCheckbox and VRadiobox override to change state first.

paintNode

public void paintNode(Rectangle docclip, Context cx)