jbcl.view Package
java.lang.Object +----com.borland.jbcl.view.FocusableItemPainter
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.
protected transient ItemPainter painter
protected Color rollColor
protected boolean showRollover
public FocusableItemPainter()Constructs a
FocusableItemPainter
with a null painter.
public FocusableItemPainter(ItemPainter painter)Constructs a
FocusableItemPainter
with the specified painter.
Parameters:
painter
public FocusableItemPainter(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
showRollover
public ItemPainter getPainter() public void setPainter(ItemPainter painter)Identifies the item painter that does the painting.
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.
public void setRolloverColor(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.
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.