|
qflib 0.98.0 | ||||||||
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.NestedOptionGroup
A NestedOptionGroup represents a NestedOption
in an
OptionSet
. It is used to edit hierarchies of Options
.
See the package documentation for details about the necessary resources.
Field Summary | |
protected OptionGroup |
nested
The nested OptionGroup. |
protected Option |
option
The option holding the nested OptionSet. |
Fields inherited from class de.qfs.lib.option.OptionGroup |
disabled, enabled, members, name, options, parent, title, titleBorder |
Constructor Summary | |
protected |
NestedOptionGroup()
No arg constructor for customized OptionGroups. |
|
NestedOptionGroup(java.lang.String name,
OptionSet options)
Create a new NestedOptionGroup. |
Method Summary | |
boolean |
checkValues()
Check whether all members of the nested group contain valid values. |
java.awt.Component |
getComponent()
Get the AWT Component for the OptionGroup. |
int |
getIndexOfMember(java.lang.Object member)
Find a member of the OptionGroup and get its index. |
java.lang.Object |
getMember(int index)
Get a member of the group. |
int |
getMemberCount()
Get the number of members of the OptionGroup. |
OptionGroup |
getParentGroup()
Get the parent of the OptionGroup. |
void |
notifyOptionObservers()
Notify the option's Observers. |
void |
readValues()
Read the values from the nested group components and store them into the Options. |
void |
setEnabled(boolean enabled)
Set the enabled state for the nested group. |
void |
setParentGroup(OptionGroup parent)
Set the parent of the OptionGroup. |
void |
setTitle(java.lang.String title)
Set the title of the OptionGroup. |
void |
update(OptionSet options)
Update display for possibly new Options. |
Methods inherited from class de.qfs.lib.option.OptionGroup |
createMembers, findEdit, findGroup, getGroup, getName, isDisabled, makeBorder, makeGroup, setDisabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Option option
protected OptionGroup nested
Constructor Detail |
protected NestedOptionGroup()
public NestedOptionGroup(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 OptionGroup
public void readValues()
checkValues
succeeded.readValues
in class OptionGroup
public void notifyOptionObservers()
notifyOptionObservers
in class OptionGroup
public void update(OptionSet options)
update
in class OptionGroup
options
- The new OptionSet.public void setEnabled(boolean enabled)
setEnabled
in class OptionGroup
enabled
- The enabled state to set.public java.awt.Component getComponent()
getComponent
in class OptionGroup
public void setTitle(java.lang.String title)
setTitle
in class OptionGroup
title
- The title to set.public OptionGroup getParentGroup()
getParentGroup
in class OptionGroup
public void setParentGroup(OptionGroup parent)
setParentGroup
in class OptionGroup
parent
- The parent to set.public int getMemberCount()
getMemberCount
in class OptionGroup
public java.lang.Object getMember(int index)
getMember
in class OptionGroup
index
- The index of the member.public int getIndexOfMember(java.lang.Object member)
getIndexOfMember
in class OptionGroup
member
- The member to look for.
|
qflib 0.98.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |