borland Packages  Class Hierarchy  jbcl.view Package  Index 

FocusableItemPainter component

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

About the FocusableItemPainter component

Variables  Constructors  Properties  Methods  

Implements ItemPainter, Serializable

A FocusableItemPainter paints a focus rectangle around the data item with the focus in a control. The painter property identifies the ItemPainter used to paint the item. If the showRollover property is true, the item is painted as highlighted when the mouse cursor moves over it.


FocusableItemPainter variables

Variables implemented in this class

FocusableItemPainter constructors

FocusableItemPainter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

FocusableItemPainter methods

Methods implemented in this class

Methods implemented in java.lang.Object


FocusableItemPainter variables

painter

  protected transient ItemPainter painter

rollColor

  protected Color rollColor

showRollover

  protected boolean showRollover

FocusableItemPainter constructors

FocusableItemPainter()

  public FocusableItemPainter()
Constructs a FocusableItemPainter with a null painter.

FocusableItemPainter(borland.jbcl.model.ItemPainter)

  public FocusableItemPainter(borland.jbcl.model.ItemPainter painter)
Constructs a FocusableItemPainter with the specified painter.

Parameters:

painter
The item painter.

FocusableItemPainter(borland.jbcl.model.ItemPainter, boolean)

  public FocusableItemPainter(borland.jbcl.model.ItemPainter painter, boolean showRollover)
Constructs a FocusableItemPainter with the specified painter. The showRollover parameter determines whether the item is highlighted when the mouse cursor passes over it.

Parameters:

painter
The item painter.
showRollover
It true, the item is painted as highlighted when the mouse cursor moves over it; otherwise, it is not.

FocusableItemPainter properties

painter

 public ItemPainter getPainter()
 public void setPainter(borland.jbcl.model.ItemPainter painter)
Identifies the item painter that does the painting.

rollColor

 public Color getRollColor()
Returns the color used to highlight the background of the item when the mouse cursor moves over it if the showRollover property it true.

rolloverColor

 public void setRolloverColor(java.awt.Color rollColor)
Sets the color used to highlight the background of the item when the mouse cursor moves over it if the showRollover property it true.

showRollover

 public boolean isShowRollover()
 public void setShowRollover(boolean showRollover)
Determines whether the item is highlighted as the mouse cursor moves over it. If showRollover is true, the item is highlighted; otherwise, it is not highlighted.