Skip navigation links
com.essbase.eas.ui
Class CButtonGroup
java.lang.Object
javax.swing.ButtonGroup
com.essbase.eas.ui.CButtonGroup
- All Implemented Interfaces:
- java.io.Serializable
-
public class CButtonGroup
- extends javax.swing.ButtonGroup
- See Also:
- Serialized Form
Fields inherited from class javax.swing.ButtonGroup |
buttons |
Constructor Summary |
CButtonGroup()
constructs a button group |
CButtonGroup(boolean isHorizontal)
constructs a button group |
Method Summary |
void |
add(javax.swing.AbstractButton b)
Method to add a button to this button group Once the button is added, its focus traversal keys are disabled and custom key bindings and a focus listener is added to handle focus traversal within the Button Group |
javax.swing.AbstractButton |
getNext(java.lang.Object btn)
|
javax.swing.AbstractButton |
getPrevious(java.lang.Object btn)
|
javax.swing.AbstractButton |
getSelectedButton()
Method to return the selected abstract button within the button group |
boolean |
isFirstCompInWindow(javax.swing.JComponent comp)
|
void |
setSelected(javax.swing.ButtonModel m, boolean b)
|
Methods inherited from class javax.swing.ButtonGroup |
clearSelection, getButtonCount, getElements, getSelection, isSelected, remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isfocusInGroup
public boolean isfocusInGroup
CButtonGroup
public CButtonGroup()
- constructs a button group
CButtonGroup
public CButtonGroup(boolean isHorizontal)
- constructs a button group
- Parameters:
isHorizontal,
- true for adding buttons in a row, false otherwise
add
public void add(javax.swing.AbstractButton b)
- Method to add a button to this button group Once the button is added, its focus traversal keys are disabled and custom key bindings and a focus listener is added to handle focus traversal within the Button Group
-
- Overrides:
add
in class javax.swing.ButtonGroup
-
- Parameters:
b
- - an abstract button to be addded
getNext
public javax.swing.AbstractButton getNext(java.lang.Object btn)
getPrevious
public javax.swing.AbstractButton getPrevious(java.lang.Object btn)
getSelectedButton
public javax.swing.AbstractButton getSelectedButton()
- Method to return the selected abstract button within the button group
-
- Returns:
- selected AbstractButton in the button group null, if no button is selected
setSelected
public void setSelected(javax.swing.ButtonModel m,
boolean b)
-
- Overrides:
setSelected
in class javax.swing.ButtonGroup
isFirstCompInWindow
public boolean isFirstCompInWindow(javax.swing.JComponent comp)
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.