|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ButtonGroup
org.brains2b.swingext.gui.ExtButtonGroup
public class ExtButtonGroup
Extended ButtonGroup overwrites ButtonGroup to keep access to the buttons contained and the sequence it is contained in.
Buttons added to this group will have their focus keys overwritten for Tab/Shift-Tab to go to the next/previous item in the group.
Left/Down goes to the previous item, Right/Up to the next item within the group.
Field Summary |
---|
Fields inherited from class javax.swing.ButtonGroup |
---|
buttons |
Constructor Summary | |
---|---|
ExtButtonGroup()
Constructor for ExtButtonGroup. |
Method Summary | |
---|---|
void |
add(javax.swing.AbstractButton b)
Add will add an AbstractButton to the ButtonGroup, set the tooltip text for this group if the button does not have a separate one Adds a KeyListener to this button to handle
focus keys. |
java.lang.String |
getToolTipText()
Returns the toolTipText. |
java.util.Iterator |
iterator()
An iterator for the buttons in this group This elimates the need to use the Enumeration in the original ButtonGroup |
void |
remove(javax.swing.AbstractButton b)
Removes the button from the ButtonGroup Removes the KeyListener from the button |
void |
setEnabled(boolean b)
Sets all the buttons in this group to enabled or disabled. |
void |
setToolTipText(java.lang.String toolTipText)
Sets the toolTipText. |
void |
setVisible(boolean b)
set all buttons in this group to visible or invisible |
Methods inherited from class javax.swing.ButtonGroup |
---|
getButtonCount, getElements, getSelection, isSelected, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtButtonGroup()
Method Detail |
---|
public void add(javax.swing.AbstractButton b)
Adds a KeyListener
to this button to handle
focus keys.
add
in class javax.swing.ButtonGroup
ButtonGroup.add(AbstractButton)
public void remove(javax.swing.AbstractButton b)
Removes the KeyListener
from the button
remove
in class javax.swing.ButtonGroup
ButtonGroup.remove(AbstractButton)
public java.util.Iterator iterator()
This elimates the need to use the Enumeration in the original ButtonGroup
public java.lang.String getToolTipText()
public void setToolTipText(java.lang.String toolTipText)
toolTipText
- The toolTipText to setpublic void setEnabled(boolean b)
b,
- true for enabled, false for disabledpublic void setVisible(boolean b)
b,
- true for visible, for for invisible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |