jbcl.view Package
com.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.
public VectorModel getModel() public void setModel(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.
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(WritableVectorSelection selection)Specifies the editable selection object associated with this vector-type component. The selection object manages the selected items in the view.
public int getSubfocus() public void setSubfocus(int subfocus)Specifies the item in the list that has subfocus.
public VectorViewManager getViewManager() public void setViewManager(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.
public WritableVectorModel getWriteModel()A read-only property that provides read/write access to the model object, if one is available.
public void addModelListener(VectorModelListener listener) public void removeModelListener(VectorModelListener listener)
public void addSelectionListener(VectorSelectionListener listener) public void removeSelectionListener(VectorSelectionListener listener)
public void addSubfocusListener(VectorSubfocusListener listener) public void removeSubfocusListener(VectorSubfocusListener listener)