jbcl.view Package
java.lang.Object +----java.awt.Component +----java.awt.Checkbox +----com.borland.jbcl.view.CheckboxView +----com.borland.jbcl.control.CheckboxControl
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.
public boolean isChecked() public void setChecked(boolean value)
Stores whether the checkbox is set; that is, checkmarked.
public SingletonModel getModel() public void setModel(SingletonModel p)
Specifies the model object that contains the component's data item.
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.
public void setState(boolean state)
Calls setChecked(state)
.
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.
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).
public Object get()
Returns the data item in the component.
protected void processItemEvent(ItemEvent e)
Replicates changes originating in the checkbox over to the model.
Parameters:
e
Overrides: java.awt.Checkbox.processItemEvent(ItemEvent)
public void set(Object data)
Sets the data item in the check box to the object passed as
the data
argument.
Parameters:
data
public synchronized void addComponentListener(java.awt.event.ComponentListener ) public synchronized void removeComponentListener(java.awt.event.ComponentListener )
public synchronized void addFocusListener(java.awt.event.FocusListener ) public synchronized void removeFocusListener(java.awt.event.FocusListener )
public synchronized void addInputMethodListener(java.awt.event.InputMethodListener ) public synchronized void removeInputMethodListener(java.awt.event.InputMethodListener )
public synchronized void addItemListener(java.awt.event.ItemListener ) public synchronized void removeItemListener(java.awt.event.ItemListener )
public synchronized void addKeyListener(java.awt.event.KeyListener ) public synchronized void removeKeyListener(java.awt.event.KeyListener )
public void addModelListener(SingletonModelListener l) public void removeModelListener(SingletonModelListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener ) public synchronized void removeMouseListener(java.awt.event.MouseListener )
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener ) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener ) public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )