|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.CheckboxGroup | +--com.linxpda.dbaware.awt.DBRadioGroup
This class is responsible for parenting a collection
of DBRadiobox
components.
It ensures that only one is selected at one time, maintains
which member of the group is the default selection, and
returns a value based upon which component is selected
at the time of the request.
Constructor Summary | |
DBRadioGroup()
Create a new DBRadioGroup. |
Method Summary | |
DBRadiobox |
addRadiobox(DBRadiobox b)
Add the provided DBRadiobox to this group. |
java.lang.String |
getColumnLabel()
Returns the data column label associated with this component. |
DBRadiobox |
getSelectedRadiobox()
Returns the DBRadiobox that is currently selected. |
java.lang.Object |
getValue()
Returns a dbaware component's value as an Object formatted in a manner in which the component can display. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Used to hear selection events from the DBRadiobox components in this group. |
void |
reset()
Resets the default DBRadiobox to 'on' and all others to 'off'. |
void |
setColumnLabel(java.lang.String label)
Sets the data column into which this component's value will be stored. |
void |
setDefault(DBRadiobox b)
Sets which DBRadiobox is the default value for this group. |
void |
setSelectedRadiobox(java.lang.String label)
Sets which DBRadiobox in this group is to be selected. |
void |
setValue(Entry value)
Passes an Entry object,
from which the dbaware component retrieves
it's value and displays it. |
Methods inherited from class java.awt.CheckboxGroup |
getCurrent, getSelectedCheckbox, setCurrent, setSelectedCheckbox, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DBRadioGroup()
Method Detail |
public DBRadiobox addRadiobox(DBRadiobox b)
public void setDefault(DBRadiobox b)
public DBRadiobox getSelectedRadiobox()
public void setSelectedRadiobox(java.lang.String label)
public void reset()
reset
in interface DBAware
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public java.lang.String getColumnLabel()
DBAware
getColumnLabel
in interface DBAware
public void setColumnLabel(java.lang.String label)
DBAware
setColumnLabel
in interface DBAware
com.linxpda.dbaware.DBAware
label
- The name of the column in which to
store this component's value.public java.lang.Object getValue()
DBAware
getValue
in interface DBAware
public void setValue(Entry value)
DBAware
Entry
object,
from which the dbaware component retrieves
it's value and displays it.setValue
in interface DBAware
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |