com.linxpda.dbaware.swing
Class DBButtonGroup
java.lang.Object
|
+--javax.swing.ButtonGroup
|
+--com.linxpda.dbaware.swing.DBButtonGroup
- All Implemented Interfaces:
- DBAware, java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable
- public class DBButtonGroup
- extends javax.swing.ButtonGroup
- implements java.awt.event.ItemListener, DBAware
Holds state for multiple DBRadioButton
isntances.
Only one DBRadioButton in a group can be selected at one time.
Setting the column label for a DBButtonGroup (through the
setColumnLabel
method) will set the
column label for all DBRadioButtons in the group, eliminating the
need to set the column for each DBRadioButton.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.ButtonGroup |
buttons |
Methods inherited from class javax.swing.ButtonGroup |
add, getButtonCount, getElements, getSelection, isSelected, remove, setSelected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBButtonGroup
public DBButtonGroup()
addRadioButton
public DBRadioButton addRadioButton(DBRadioButton db)
setDefaultRadioButton
public void setDefaultRadioButton(DBRadioButton db)
getSelectedRadioButton
public DBRadioButton getSelectedRadioButton()
setSelectedRadioButton
public void setSelectedRadioButton(java.lang.String label)
reset
public void reset()
- Description copied from interface:
DBAware
- Resets the component upon a request to clear
screen from a
DBRootPane
.
- Specified by:
reset
in interface DBAware
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
getColumnLabel
public java.lang.String getColumnLabel()
- Description copied from interface:
DBAware
- Returns the data column label associated with this
component.
- Specified by:
getColumnLabel
in interface DBAware
setColumnLabel
public void setColumnLabel(java.lang.String label)
- Description copied from interface:
DBAware
- Sets the data column into which this component's
value will be stored.
- Specified by:
setColumnLabel
in interface DBAware
- Following copied from interface:
com.linxpda.dbaware.DBAware
- Parameters:
label
- The name of the column in which to
store this component's value.
getValue
public java.lang.Object getValue()
- Description copied from interface:
DBAware
- Returns a dbaware component's value as an Object
formatted in a manner in which the component
can display.
- Specified by:
getValue
in interface DBAware
setValue
public void setValue(Entry e)
- Description copied from interface:
DBAware
- Passes an
Entry
object,
from which the dbaware component retrieves
it's value and displays it.
- Specified by:
setValue
in interface DBAware