qflib 0.98.1

de.qfs.lib.option
Class PlainOptionGroup

java.lang.Object
  |
  +--de.qfs.lib.option.OptionGroup
        |
        +--de.qfs.lib.option.PlainOptionGroup
Direct Known Subclasses:
FramedOptionGroup

public class PlainOptionGroup
extends OptionGroup

A PlainOptionGroup packs Options and Subgroups together into a Grid. It uses the following resources:

Resource name Usage
option.group.groupname.type A PlainOptionGroup is designated by the type plain.
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.members The members of the group, a space separated list where name denotes an Option and group.groupname denotes an OptionGroup.
option.group.groupname.columns The number of columns in which to place the members 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).

Version:
$Revision: 1.13 $
Author:
Gregor Schmid

Field Summary
protected  Grid grid
          The Grid Component that holds the members of the PlainOptionGroup.
 
Fields inherited from class de.qfs.lib.option.OptionGroup
disabled, enabled, members, name, options, parent, title, titleBorder
 
Constructor Summary
protected PlainOptionGroup()
          No arg constructor for customized OptionGroups.
  PlainOptionGroup(java.lang.String name, OptionSet options)
          Create a new PlainOptionGroup.
 
Method Summary
 java.awt.Component getComponent()
          Get the AWT Component for the OptionGroup.
protected  void makeGrid()
          Create the Grid component for the group members.
 
Methods inherited from class de.qfs.lib.option.OptionGroup
checkValues, createMembers, findEdit, findGroup, getBoolean, getGroup, getIndexOfMember, getInt, getMember, getMemberCount, getName, getParentGroup, getString, isDisabled, makeBorder, makeGroup, notifyOptionObservers, readValues, setDisabled, setEnabled, setParentGroup, setTitle, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grid

protected Grid grid
The Grid Component that holds the members of the PlainOptionGroup.
Constructor Detail

PlainOptionGroup

protected PlainOptionGroup()
No arg constructor for customized OptionGroups.

PlainOptionGroup

public PlainOptionGroup(java.lang.String name,
                        OptionSet options)
Create a new PlainOptionGroup.
Parameters:
name - The name of the group.
options - The Options to edit.
Method Detail

getComponent

public java.awt.Component getComponent()
Get the AWT Component for the OptionGroup.
Overrides:
getComponent in class OptionGroup
Returns:
The Component.

makeGrid

protected void makeGrid()
Create the Grid component for the group members.

qflib 0.98.1