borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

BasicViewManager component

java.lang.Object
   +----borland.jbcl.model.BasicViewManager

About the BasicViewManager component

Constructors  Properties  Methods  

Implements GraphViewManager, MatrixViewManager, SingletonViewManager, VectorViewManager

This view manager handles a single viewer and/or editor for all model types. The viewer is used to view data items in singleton, vector, matrix, and graph model components, and the editor is used edit the same data items. You can choose to use the viewer and editor properties to specify the appropriate viewer and editor, or you can pass a viewer or both a viewer and an editor to the class when it is constructed.

See also: TypedViewManager


BasicViewManager constructors

BasicViewManager properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

BasicViewManager methods

Methods implemented in this class

Methods implemented in java.lang.Object


BasicViewManager constructors

BasicViewManager()

  public BasicViewManager()
Constructs a BasicViewManager with default property values. The viewer and editor properties must be set to valid items before the view manager can be used.

BasicViewManager(borland.jbcl.model.ItemPainter)

  public BasicViewManager(borland.jbcl.model.ItemPainter painter)
Constructs a BasicViewManager. Use this constructor when you need an item painter only, and not an item editor.

Parameters:

painter
The item painter that paints the item.

BasicViewManager(borland.jbcl.model.ItemPainter, borland.jbcl.model.ItemEditor)

  public BasicViewManager(borland.jbcl.model.ItemPainter painter, borland.jbcl.model.ItemEditor editor)
Constructs a BasicViewManager. Use this constructor when you need both an item painter and an item editor.

Parameters:

painter
The item painter used to paint the item.
editor
The item editor used to edit the item.

BasicViewManager properties

editor

 public ItemEditor getEditor()
 public void setEditor(borland.jbcl.model.ItemEditor e)
Obtains the editor used for editing data items. Use this method for a BasicViewManager that was created with a constructor that takes no parameters.

Each model type has its own getEditor() methods. The view manager selects the appropriate editor based on the value of the passed parameters.

For a singleton view manager, use the getEditor(java.lang.Object, int) method.

For a vector view manager, use the getEditor(int, java.lang.Object, int) method.

For a matrix view manager, use the getEditor(int, int, java.lang.Object, int) method.

For a graph view manager, use the getEditor(borland.jbcl.model.GraphLocation, java.lang.Object, int) method.

 public void setEditor(borland.jbcl.model.ItemEditor e)
Specifies the editor to use for editing data items. Use this method for a BasicViewManager that was created with a constructor that takes no parameters.

Parameters:

e
The item editor used to edit data items.

painter

 public ItemPainter getPainter()
 public void setPainter(borland.jbcl.model.ItemPainter p)
 public void setPainter(borland.jbcl.model.ItemPainter p)
Obtains an item painter for painting the data items. Use this method for a BasicViewManager that was created with a constructor that takes no parameters.

Each model type has its own getPainter() methods. The view manager selects the appropriate editor based on the value of the passed parameters.

For a singleton view manager, use the getPainter(java.lang.Object, int) method.

For a vector view manager, use the getPainter(int, java.lang.Object, int) method.

For a matrix view manager, use the getPainter(int, int, java.lang.Object, int) method.

For a graph view manager, use the getPainter(borland.jbcl.model.GraphLocation, java.lang.Object, int) method. The setPainter() access method specifies an item painter to use for painting data items.

Parameters:

p
The item painter used for painting data items.