borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
java.lang.Object +----java.awt.Component +----java.awt.Checkbox +----borland.jbcl.view.CheckboxView +----borland.jbcl.control.CheckboxControl
Variables Constructors Properties Methods Event Listeners
Implements AccessListener, NavigationListener, SingletonModel, SingletonModelListener, WritableSingletonModel, BlackBox, SingletonView, ItemSelectable, MenuContainer, ImageObserver, Serializable, EventListener
CheckboxControl is a graphical user interface element that has a Boolean state. It is designed to function similarly to java.awt.Checkbox but provides the greater flexibility of model-view composition.
public CheckboxControl()Constructs a CheckboxControl with default property values.
public boolean isChecked() public void setChecked(boolean value)
Stores whether the checkbox is set (rather than cleared).
public String getColumnName() public void setColumnName(java.lang.String newColumnName)
The DataSet column to which the checkbox control is bound.
public DataSet getDataSet() public void setDataSet(borland.jbcl.dataset.DataSet newDataSet)The dataSet property specifies a borland.jbcl.dataset.DataSet object to display data from in the field.
public void setModel(borland.jbcl.model.SingletonModel sm)Does exception checking to prevent recursive model declaration. Overrides and calls borland.jbcl.view.CheckboxView.setModel(SingletonModel p), which specifies the model object that contains the component's data item.
public void addNotify()
Creates the peer of the checkbox, so the checkbox has the standard appearance for each platform. Also, if the dataSet property is set, and that cursor's autoOpen property is set to true, opens the cursor.
Overrides: java.awt.Checkbox.addNotify()
public synchronized void addComponentListener(java.awt.event.ComponentListener l) public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener l) public synchronized void removeFocusListener(java.awt.event.FocusListener l)
public synchronized void addItemListener(java.awt.event.ItemListener l) public synchronized void removeItemListener(java.awt.event.ItemListener l)
public synchronized void addKeyListener(java.awt.event.KeyListener l) public synchronized void removeKeyListener(java.awt.event.KeyListener l)
public void addModelListener(borland.jbcl.model.SingletonModelListener l) public void removeModelListener(borland.jbcl.model.SingletonModelListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener l) public synchronized void removeMouseListener(java.awt.event.MouseListener l)
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)