multivalent.gui

Class VRadiobox

public class VRadiobox extends VButton

Radiobox widget: only on in associated Radiogroup can be selected at the same time. Usable as button and menu item.

Version: $Revision: 1.4 $ $Date: 2002/01/27 02:02:16 $

Constructor Summary
VRadiobox(String name, Map<String,Object> attr, INode parent, VRadiogroup group)
Method Summary
booleanformatNode(int width, int height, Context cx)
Ensure that padding on left is large enough for checkbox.
VRadiogroupgetRadiogroup()
booleangetState()
voidinvoke()
Change state, then call associated VScript, if any.
voidpaintNode(Rectangle docclip, Context cx)
Draw radiobox too.
voidsetRadiogroup(VRadiogroup group)
voidsetState(boolean b)

Constructor Detail

VRadiobox

public VRadiobox(String name, Map<String,Object> attr, INode parent, VRadiogroup group)

Method Detail

formatNode

public boolean formatNode(int width, int height, Context cx)
Ensure that padding on left is large enough for checkbox.

getRadiogroup

public VRadiogroup getRadiogroup()

getState

public boolean getState()

invoke

public void invoke()
Change state, then call associated VScript, if any.

paintNode

public void paintNode(Rectangle docclip, Context cx)
Draw radiobox too.

setRadiogroup

public void setRadiogroup(VRadiogroup group)

setState

public void setState(boolean b)