multivalent.gui

Class VCheckbox

public class VCheckbox extends VButton

Checkbox widget: toggle ON and OFF. Usable as button and menu item.

Version: $Revision: 1.5 $ $Date: 2002/01/27 02:00:01 $

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

Constructor Detail

VCheckbox

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

Method Detail

formatNode

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

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 checkbox too.

setState

public void setState(boolean b)