borland Packages  Class Hierarchy  jbcl.model Package  Index 

SingletonViewManager interface

borland.jbcl.model.SingletonViewManager

About the SingletonViewManager interface

Methods  

Implemented by SingletonDataSetManager, BasicViewManager, TypedViewManager

A class implementing SingletonViewManager selects item painters and item editors for singleton data structures.

Although you can implement this interface directly, JBCL provides classes such as BasicViewManager and TypedViewManager that implement it for you.


SingletonViewManager methods

Methods defined in this interface


SingletonViewManager methods

getEditor(java.lang.Object, int)

  public ItemEditor getEditor(java.lang.Object data, int state)
Returns an item editor. Classes that implement SingletonViewManager can use some, all, or none of the passed values to select the appropriate item editor object.

Parameters:

data
The data object to be edited.
state
The current state information for the item. Specify state as one of the variables defined in the ItemPainter interface.

getPainter(java.lang.Object, int)

  public ItemPainter getPainter(java.lang.Object data, int state)
Returns an item painter. Classes that implement SingletonViewManager can use some, all, or none of the passed values to select the appropriate item editor object.

Parameters:

data
The data object to be painted.
state
The current state information for the item. Specify state as one of the variables defined in the ItemPainter interface.