|
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.ChoiceOptionGroup
ChoiceOptions and ChoiceOptionEdits instead. ChoiceOptionGroup will be removed
in the next version.
A ChoiceOptionGroup is represented by a JComboBox representing one Option.
The Option should be an IntegerOption, its value
between 1 and [number of choices].
The labels of the choices are defined by the resources set with Option.setResources. See the package documentation
for details about the necessary resources.
To build a ChoiceOptionGroup with a dynamic set of choices created at
runtime, create a custom OptionGroup derived from ChoiceOptionGroup and
override getChoices.
| Field Summary | |
protected java.lang.Object[] |
choices
Deprecated. The possible choices. |
protected javax.swing.JComboBox |
combo
Deprecated. The JComboBox for the ChoiceOptionGroup. |
protected Option |
option
Deprecated. The Option that holds the value for the selected choice. |
| Fields inherited from class de.qfs.lib.option.OptionGroup |
disabled, enabled, members, name, options, parent, title, titleBorder |
| Constructor Summary | |
protected |
ChoiceOptionGroup()
Deprecated. No arg constructor for specialized OptionGroups. |
|
ChoiceOptionGroup(java.lang.String name,
OptionSet options)
Deprecated. Create a new ChoiceOptionGroup. |
| Method Summary | |
boolean |
checkValues()
Deprecated. Check the values. |
protected void |
getChoices()
Deprecated. Create the possible choices from the resources. |
java.awt.Component |
getComponent()
Deprecated. Get the AWT Component for the OptionGroup. |
void |
notifyOptionObservers()
Deprecated. Notify the option's Observers. |
void |
readValues()
Deprecated. Store the value for the selected Choice in the Option. |
void |
setEnabled(boolean enabled)
Deprecated. Set the enabled state for the buttons. |
void |
update(OptionSet options)
Deprecated. 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.lang.Object[] choices
protected javax.swing.JComboBox combo
protected Option option
| Constructor Detail |
protected ChoiceOptionGroup()
public ChoiceOptionGroup(java.lang.String name,
OptionSet options)
name - The name of the group.options - The Options to edit.| Method Detail |
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()
option.group.groupname.option
resource.
|
qflib 0.98.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||