jbcl.view Package
java.lang.Object +----com.borland.jbcl.view.ButtonItemPainter +----com.borland.jbcl.view.ImageButtonItemPainter
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.
protected BorderItemPainter dnBorderA
BorderItemPainter
with BUTTON_DN, RECT, FILL.
protected transient ItemPainter painter
protected boolean showRollover
protected BorderItemPainter upBorderA
BorderItemPainter
with BUTTON_UP, RECT, FILL.
public ButtonItemPainter()Constructs a
ButtonItemPainter
with a default ItemPainter
.
public ButtonItemPainter(ItemPainter painter)Constructs a
ButtonItemPainter
with the specified ItemPainter
.
public ButtonItemPainter(ItemPainter painter, boolean showRollover)Constructs a
ButtonItemPainter
with the specified ItemPainter
. It also sets the state of the showRollover
property.
Parameters:
painter
ItemPainter
used to paint the item.
showRollover
public ItemPainter getPainter() public void setPainter(ItemPainter v)The
painter
property uses the painter
variable, which is the ItemPainter object for this ButtonItemPainter
.
public boolean isShowRollover() public void setShowRollover(boolean showRollover)Determines whether the item is painted as highlighted when the mouse cursor rolls over the item.