Returns the margin size between the icon and the text.
The margin will only be displayed if the button has both
icon and text properties set.
This property only supports Extents with
fixed (i.e., not percent) units.
the margin size
Sets the icon displayed in the button.
Parameters: newValue - the new icon
setIconTextMargin
public void setIconTextMargin(Extent newValue)(Code)
Sets the margin size between the icon and the text.
The margin will only be displayed if the button has both
icon and text properties set.
This property only supports Extents with
fixed (i.e., not percent) units.
Parameters: newValue - the margin size
Sets whether the text of the button should wrap in the event that
horizontal space is limited. Default value is true.
Parameters: newValue - the new line wrap state
Sets the model that this button represents. The model may not be null.
Parameters: newValue - the new ButtonModel
setPressedBackground
public void setPressedBackground(Color newValue)(Code)
Sets the background color of the button when the button is pressed.
Parameters: newValue - the new Color
setPressedBackgroundImage
public void setPressedBackgroundImage(FillImage newValue)(Code)
Sets the background image displayed when the button is pressed.
Parameters: newValue - the new background image
setPressedBorder
public void setPressedBorder(Border newValue)(Code)
Sets the border displayed around the button when the button is pressed.
Parameters: newValue - the new border
setPressedEnabled
public void setPressedEnabled(boolean newValue)(Code)
Sets whether pressed effects are enabled when the button is pressed.
Pressed properties have no effect unless this property is set to true.
The default value is false.
Parameters: newValue - true if pressed effects should be enabled
Sets the icon of the button that is displayed when the button is pressed.
Parameters: newValue - the new icon
setRolloverBackground
public void setRolloverBackground(Color newValue)(Code)
Sets the background color of the button when the mouse cursor is inside
its bounds.
Parameters: newValue - the new Color
setRolloverBackgroundImage
public void setRolloverBackgroundImage(FillImage newValue)(Code)
Sets the background image displayed when the mouse cursor is inside the
button's bounds
Parameters: newValue - the new background image
setRolloverBorder
public void setRolloverBorder(Border newValue)(Code)
Sets the border displayed around the button when the mouse cursor is
inside its bounds.
Parameters: newValue - the new border
setRolloverEnabled
public void setRolloverEnabled(boolean newValue)(Code)
Sets whether rollover effects are enabled when the mouse cursor is inside
the button's bounds. Rollover properties have no effect unless this
property is set to true. The default value is false.
Parameters: newValue - true if rollover effects should be enabled
Sets the alignment of the text relative to the icon.
Note that only one of the provided Alignment's
settings should be non-default.
Parameters: newValue - the new text alignment
Sets the position of the text relative to the icon.
Note that only one of the provided Alignment's
settings should be non-default.
Parameters: newValue - the new text position