borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
java.lang.Object +----java.awt.Component +----java.awt.Checkbox +----borland.jbcl.view.CheckboxView +----borland.jbcl.control.CheckboxControl
Variables Properties Methods Event Listeners
Implements SingletonModelListener, SingletonView, ItemSelectable, MenuContainer, ImageObserver, 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(borland.jbcl.model.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 SingletonViewManager getViewManager() public void setViewManager(borland.jbcl.model.SingletonViewManager svm)Specifies the view manager object that handles item painters (and item editors, if necessary) for this checkbox component.
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 allow editing).
public Object get()Returns the data item in the component.
protected void processItemEvent(java.awt.event.ItemEvent e)Replicates changes originating in the checkbox over to the model.
Parameters:
Overrides: java.awt.Checkbox.processItemEvent(ItemEvent)
public void set(java.lang.Object data)Sets the data item in the check box to the object passed as the data argument.
Parameters:
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)