borland Packages  Class Hierarchy  jbcl.view Package  Index 

CheckboxView class

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

About the CheckboxView class

Variables  Properties  Methods  Event Listeners

Implements SingletonModelListener, SingletonModelView, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener

The CheckboxView component is a view element for developing new composite components. A check box is a user interface element that has a boolean state (on or off). CheckboxView requires a SingletonModel data model and a SingletonViewManager view manager.

 


CheckboxView variables

Variables implemented in java.awt.Component

CheckboxView properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.awt.Checkbox

Properties implemented in java.awt.Component

Properties implemented in java.lang.Object

CheckboxView methods

Methods implemented in this class

Methods implemented in java.awt.Checkbox

Methods implemented in java.awt.Component

Methods implemented in java.lang.Object

CheckboxView event listeners


CheckboxView properties

checked

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

Stores whether the checkbox is set; that is, checkmarked.

model

 public SingletonModel getModel()
 public void setModel(borland.jbcl.model.SingletonModel p)

Specifies the model object that contains the component's data item.

readOnly

 public boolean isReadOnly()
 public void setReadOnly(boolean ro)

Specifies whether the user may change the state of the component, checking it on or off, at runtime.

state

 public void setState(boolean state)

Calls setChecked(state).

writeModel

 public WritableSingletonModel getWriteModel()

A read-only property that returns the writable model object attached to this checkbox component, if it exists. If no writable model exists, this method returns null.


CheckboxView methods

canSet()

  public boolean canSet()

Returns true if the model can set the data item (if the component is not readOnly and if the model object allows editing).

get()

  public Object get()

Returns the data item in the component.

processItemEvent(java.awt.event.ItemEvent)

  protected void processItemEvent(java.awt.event.ItemEvent e)

Replicates changes originating in the checkbox over to the model.

Parameters:

e
The item event in the checkbox.

Overrides: java.awt.Checkbox.processItemEvent(ItemEvent)

set(java.lang.Object)

  public void set(java.lang.Object data)

Sets the data item in the check box to the object passed as the data argument.

Parameters:

data
The object to set the check box data item to.

CheckboxView event listeners

This class 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 )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

focus

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

item

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

key

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

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 )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

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