borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----borland.jbcl.model.BasicViewManager
Variables Constructors Properties Methods
Implements GraphViewManager, MatrixViewManager, SingletonViewManager, VectorViewManager, Serializable
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
protected transient ItemEditor editor
protected transient ItemPainter painter
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.
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:
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:
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:
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: