borland Packages  Class Hierarchy  jbcl.view Package  Index 

ButtonItemPainter component

java.lang.Object
   +----borland.jbcl.view.ButtonItemPainter
           +----borland.jbcl.view.ImageButtonItemPainter

About the ButtonItemPainter component

Variables  Constructors  Properties  Methods  

Implements ItemPainter, Serializable

Paints a button with a shaded edge that changes when the button is pressed. It is used for data-aware, model-view buttons. A ButtonItemPainter puts a button border around another item painter. This button-type border can respond to and indicate the state of the enclosed item.


ButtonItemPainter variables

Variables implemented in this class

ButtonItemPainter constructors

ButtonItemPainter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

ButtonItemPainter methods

Methods implemented in this class

Methods implemented in java.lang.Object


ButtonItemPainter variables

dnBorder

  protected BorderItemPainter dnBorder
A BorderItemPainter with BUTTON_DN, RECT, FILL.

painter

  protected transient ItemPainter painter

showRollover

  protected boolean showRollover

upBorder

  protected BorderItemPainter upBorder
A BorderItemPainter with BUTTON_UP, RECT, FILL.


ButtonItemPainter constructors

ButtonItemPainter()

  public ButtonItemPainter()
Constructs a ButtonItemPainter with a default ItemPainter.

ButtonItemPainter(borland.jbcl.model.ItemPainter)

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

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

  public ButtonItemPainter(borland.jbcl.model.ItemPainter painter, boolean showRollover)
Constructs a ButtonItemPainter with the specified ItemPainter. It also sets the state of the showRollover property.

Parameters:

painter
The ItemPainter used to paint the item.
showRollover
If true, the item is highlighted when the mouse cursor moves over it; otherwise, it is not highlighted.

ButtonItemPainter properties

painter

 public ItemPainter getPainter()
 public void setPainter(borland.jbcl.model.ItemPainter v)
The painter property uses the painter variable, which is the ItemPainter object for this ButtonItemPainter.

showRollover

 public boolean isShowRollover()
 public void setShowRollover(boolean showRollover)
Determines whether the item is painted as highlighted when the mouse cursor rolls over the item.