borland Packages  Class Hierarchy  jbcl.view Package  Index 

VectorView interface

borland.jbcl.view.VectorView

About the VectorView interface

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.


VectorView properties

*Read-only properties **Write-only properties

Properties defined in this interface

VectorView event listeners


VectorView properties

model

 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.

readOnly

 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.

selection

 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.

subfocus

 public int getSubfocus()
 public void setSubfocus(int subfocus)
Specifies the item in the list that has subfocus.

viewManager

 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.

writeModel

 public WritableVectorModel getWriteModel()
A read-only property that provides read/write access to the model object, if one is available.


VectorView event listeners

This interface is a source for the following event sets. For information on the JBCL event sets, see Events in JBCL.

model

 public void addModelListener(borland.jbcl.model.VectorModelListener listener)
 public void removeModelListener(borland.jbcl.model.VectorModelListener listener)

selection

 public void addSelectionListener(borland.jbcl.model.VectorSelectionListener listener)
 public void removeSelectionListener(borland.jbcl.model.VectorSelectionListener listener)

subfocus

 public void addSubfocusListener(borland.jbcl.model.VectorSubfocusListener listener)
 public void removeSubfocusListener(borland.jbcl.model.VectorSubfocusListener listener)