|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.qfs.lib.option.OptionGroup
|
+--de.qfs.lib.option.RadioOptionGroup
A RadioOptionGroup consists of a group of mutually exclusive RadioButtons
for one Option value. The option should be an IntegerOption, its value between 1 and the number of buttons.
The RadioOptionGroup uses the following resources:
| Resource name | Usage |
|---|---|
option.group.groupname.type |
A RadioOptionGroup is designated by the type radio. |
option.name.disabled |
If true, the group will be disabled and remain so even if
setEnabled(true) is called (optional,
default false). |
option.group.groupname.option |
The name of the Option for the group. |
option.group.groupname.numchoices |
The number of Buttons in the group. |
option.group.groupname.choicen.label |
The label for the nth button of the group, where n is between 1 and numchoices. |
option.group.groupname.choicen.mnemonic |
Keyboard accelerator for the nth button of the group (optional, default none). |
option.group.groupname.columns |
The number of columns in which to place the buttons of the group (optional, default 1). |
option.group.groupname.frame |
Whether the group should have a framed border (optional, default false). |
option.group.groupname.title |
The title for a framed border of the group. Ignored if no frame is specified(optional, default empty). |
| Field Summary | |
protected javax.swing.ButtonGroup |
buttonGroup
The ButtonGroup that manages the JButtons. |
protected java.util.List |
buttons
The JButton members of the ButtonGroup. |
protected java.util.List |
choices
The possible choices. |
protected Grid |
grid
The Grid Component that holds the members of the RadioOptionGroup. |
protected Option |
option
The Option that holds the value for the selected Button. |
| Fields inherited from class de.qfs.lib.option.OptionGroup |
disabled, enabled, members, name, options, parent, title, titleBorder |
| Constructor Summary | |
protected |
RadioOptionGroup()
No arg constructor for customized OptionGroups. |
|
RadioOptionGroup(java.lang.String name,
OptionSet options)
Create a new RadioOptionGroup. |
| Method Summary | |
boolean |
checkValues()
Check the values. |
protected void |
getChoices()
Create the possible choices. |
java.awt.Component |
getComponent()
Get the AWT Component for the OptionGroup. |
Option |
getOption()
Get the option that holds the value for the RadioOptionGroup. |
protected void |
makeGrid()
Create the Grid for the group members. |
void |
notifyOptionObservers()
Notify the option's Observers. |
void |
readValues()
Store the value for the selected Button in the Option. |
void |
setEnabled(boolean enabled)
Set the enabled state for the buttons. |
void |
update(OptionSet options)
Update display for possibly new Options. |
| Methods inherited from class de.qfs.lib.option.OptionGroup |
createMembers, findEdit, findGroup, getBoolean, getGroup, getIndexOfMember, getInt, getMember, getMemberCount, getName, getParentGroup, getString, isDisabled, makeBorder, makeGroup, setDisabled, setParentGroup, setTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List choices
protected Grid grid
protected Option option
protected javax.swing.ButtonGroup buttonGroup
protected java.util.List buttons
| Constructor Detail |
protected RadioOptionGroup()
public RadioOptionGroup(java.lang.String name,
OptionSet options)
name - The name of the group.options - The Options to edit.| Method Detail |
public Option getOption()
public boolean checkValues()
checkValues in class OptionGrouppublic void readValues()
readValues in class OptionGrouppublic void notifyOptionObservers()
notifyOptionObservers in class OptionGrouppublic void update(OptionSet options)
update in class OptionGroupoptions - The new OptionSet.public void setEnabled(boolean enabled)
setEnabled in class OptionGroupenabled - The enabled state to set.public java.awt.Component getComponent()
getComponent in class OptionGroupprotected void getChoices()
protected void makeGrid()
|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||