borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
borland.jbcl.view.VectorView
Properties Event Listeners
Implemented by ListControl, TabsetControl, TabsetPanel, ListView, TabsetView
Collects the basic behavior required of all components using a vector-type model object to access data items. Implementers of VectorView have the simple properties that exist on all views of a VectorModel model object.
If you are writing a new vector-type component, implement VectorView in the view class to ensure that the component has all expected functionality.
See also: Understanding model-view architecture, Models in the Java Beans Component Library
public VectorModel getModel() public void setModel(borland.jbcl.model.VectorModel model)Specifies the model object providing item access for this matrix-type component. Although getModel()always returns a read-only model object, setModel() attempts a cast to WritableVectorModel. If the cast is successful, it sets the writeModel property to the same object.
See also: Vector model classes
public boolean isReadOnly() public void setReadOnly(boolean readOnly)The readOnly property overrides the existance of a writeable model. When the property is set to true, isReadOnly() always returns true. When set to false, isReadOnly() still returns true if the model is not writeable.
public WritableVectorSelection getSelection() public void setSelection(borland.jbcl.model.WritableVectorSelection selection)Specifies the editable selection object associated with this vector-type component. The selection object manages the selected items in the view.
See also: Selecting items in composite components
public int getSubfocus() public void setSubfocus(int subfocus)Specifies the item in the list that has subfocus.
See also: Handling subfocus events
public VectorViewManager getViewManager() public void setViewManager(borland.jbcl.model.VectorViewManager viewManager)Specifies the view manager object associated with this vector-type component. The viewManager provides item painters and item editors based on the model object's type.
See also: View manager classes
public WritableVectorModel getWriteModel()A read-only property that provides read/write access to the model object, if such is available.
See also: Vector model classes
public void addModelListener(borland.jbcl.model.VectorModelListener listener) public void removeModelListener(borland.jbcl.model.VectorModelListener listener)
public void addSelectionListener(borland.jbcl.model.VectorSelectionListener listener) public void removeSelectionListener(borland.jbcl.model.VectorSelectionListener listener)
public void addSubfocusListener(borland.jbcl.model.VectorSubfocusListener listener) public void removeSubfocusListener(borland.jbcl.model.VectorSubfocusListener listener)