borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

StateItemPainter component

java.lang.Object
   +----borland.jbcl.view.StateItemPainter

About the StateItemPainter component

Constructors  Properties  Methods  

Implements ItemPainter

Paints items differently, depending upon the data item's state. States are registered with the item painter.

State/value pairs are registered in LIFO ordering (last one checked first). Checking succeeds if the states are equal (so that 0 matches) or their bitwise AND is not zero. The last pair that was registered with state of 0 is considered the default to use when there are no matches.


StateItemPainter constructors

StateItemPainter properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

StateItemPainter methods

Methods implemented in this class

Methods implemented in java.lang.Object


StateItemPainter constructors

StateItemPainter()

  public StateItemPainter()

StateItemPainter(borland.jbcl.model.ItemPainter)

  public StateItemPainter(borland.jbcl.model.ItemPainter painter)

StateItemPainter methods

getValue(int)

  public Integer getValue(int state)

register(int, int)

  public void register(int state, int value)