borland Packages Class Hierarchy jbcl.view Package Index
java.lang.Object +----borland.jbcl.view.ButtonItemPainter +----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(borland.jbcl.model.ItemPainter painter)Constructs a ButtonItemPainter with the specified ItemPainter.
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:
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.
public boolean isShowRollover() public void setShowRollover(boolean showRollover)Determines whether the item is painted as highlighted when the mouse cursor rolls over the item.