borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

CheckboxControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Checkbox
                   +----borland.jbcl.view.CheckboxView
                           +----borland.jbcl.control.CheckboxControl

About the CheckboxControl component

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.


CheckboxControl variables

Variables implemented in java.awt.Component

CheckboxControl constructors

CheckboxControl properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.CheckboxView

Properties implemented in java.awt.Checkbox

Properties implemented in java.awt.Component

Properties implemented in java.lang.Object

CheckboxControl methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.CheckboxView

Methods implemented in java.awt.Checkbox

Methods implemented in java.awt.Component

Methods implemented in java.lang.Object

CheckboxControl event listeners


CheckboxControl constructors

CheckboxControl()

  public CheckboxControl()
Constructs a CheckboxControl with default property values.


CheckboxControl properties

checked

 public boolean isChecked()
 public void setChecked(boolean value)

Stores whether the checkbox is set (rather than cleared).

columnName

 public String getColumnName()
 public void setColumnName(java.lang.String newColumnName)

The DataSet column to which the checkbox control is bound.

dataSet

 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.

model

 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.


CheckboxControl methods

addNotify()

  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()


CheckboxControl event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events. For information on the JBCL event sets, see Events in JBCL.

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

item

 public synchronized void addItemListener(java.awt.event.ItemListener l)
 public synchronized void removeItemListener(java.awt.event.ItemListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

model

 public void addModelListener(borland.jbcl.model.SingletonModelListener l)
 public void removeModelListener(borland.jbcl.model.SingletonModelListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)