borland Packages Class Hierarchy jbcl.view Package Index
java.lang.Object +----borland.jbcl.view.BooleanToggleItemEditor
Variables Constructors Properties Methods Event Listeners
Implements ItemEditor, ToggleItemEditor, Serializable
BooleanToggleItemEditor component is an ItemEditor that can be used with controls that follow the model-view architecture.
There is no user-interface associated with this component; use this component in conjunction with a CheckboxItemPainter.
An object whose itemEditor property is set to this component has the following behavior:
An integer value of 0 is processed as a false value. Boolean values of true are recognized as such; all other values are false.
protected boolean state
protected int type
public BooleanToggleItemEditor()Constructs a BooleanToggleItemEditor.
public Component getComponent()Returns the actual component that will be added to the host control as an editor.
public Object getValue()Returns the current value in the editor. The editor host must be able to ask for the value at anytime and always asks for it when posting to the data object.
protected void toggle(java.lang.Object data)Reverses the boolean state of the item editor.
Parameters:
public void addKeyListener(java.awt.event.KeyListener l) public void removeKeyListener(java.awt.event.KeyListener l)