public interface ItsNatButtonGroup
Button groups are currently used only by radio buttons (ItsNatButtonRadio
).
A button group has a name, this name is unique per document no other button group has this name.
The same is applied for the javax.swing.ButtonGroup
associated to this group.
ButtonGroup
objects are used to provide some support to the Swing
standard way to create groups (see javax.swing.ButtonModel.setGroup(ButtonGroup)
),
but some methods like ButtonGroup.add(AbstractButton)
have no sense in ItsNat,
use addButton(ItsNatComponent)
instead.
ItsNatComponentManager.createItsNatButtonGroup()
Modifier and Type | Method and Description |
---|---|
void |
addButton(ItsNatComponent button)
Adds the specified button to this group.
|
ItsNatComponent |
getButton(int index)
Returns the button at the specified position.
|
int |
getButtonCount()
Returns the number of buttons of this group.
|
javax.swing.ButtonGroup |
getButtonGroup()
Returns the Swing
ButtonGroup object of this button group. |
java.lang.String |
getName()
Returns the name of this button group.
|
void |
removeButton(ItsNatComponent button)
Removes the specified button from this group.
|
java.lang.String getName()
ItsNatComponentManager.getItsNatButtonGroup(String)
javax.swing.ButtonGroup getButtonGroup()
ButtonGroup
object of this button group. This object is not shared (unique) per document.ButtonGroup
object of this button group.ItsNatComponentManager.getItsNatButtonGroup(javax.swing.ButtonGroup)
void addButton(ItsNatComponent button)
button
- the button to add.removeButton(ItsNatComponent)
,
ItsNatButtonRadio.setItsNatButtonGroup(ItsNatButtonGroup)
void removeButton(ItsNatComponent button)
button
- the button to remove.addButton(ItsNatComponent)
int getButtonCount()
ItsNatComponent getButton(int index)
index
- 0 based index of the button.Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.