public class SBTabButton extends SBButton
A tab-style button variant of SBButton that supports a selected state. This button has top and bottom borders only (in all states), and can switch icons based on the selected state vs default state. The button enters selected state when clicked (mouse press) Each SBTabButton is associated with an index in a group, managed by a shared SingleSelectionModel. The selected state is determined by whether the button's index matches the selected index in the model.
| Modifiers | Name | Description |
|---|---|---|
static java.awt.Color |
BORDER_COLOR |
| Constructor and description |
|---|
SBTabButton(java.lang.String text, javax.swing.Icon defaultIcon, javax.swing.Icon selectedIcon) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
getIndexInGroup() |
|
public javax.swing.SingleSelectionModel |
getSelectionModel() |
|
public boolean |
isSelected() |
|
public void |
setSelected(boolean selected)Requests selection of this tab in the associated javax.swing.SingleSelectionModel when selected is true.
|
|
public void |
setSelectionModel(javax.swing.SingleSelectionModel model, int index) |
| Methods inherited from class | Name |
|---|---|
class SBButton |
focusGained, focusLost, getWidgetImagePath, isFocusPainted, mouseEntered, mouseExited, mousePressed, mouseReleased, resolveIconFromImagePath, setAction, setEnabled, setIconPath, setText, setToolTipText |
Requests selection of this tab in the associated javax.swing.SingleSelectionModel when selected is true.
The actual selected state of the button is always derived from the model via isSelected().
ReadyAPI functional (soapui) SDK 4.0.1