qflib 0.98.0

de.qfs.lib.option
Class TabbedOptionGroup

java.lang.Object
  |
  +--de.qfs.lib.option.OptionGroup
        |
        +--de.qfs.lib.option.TabbedOptionGroup

public class TabbedOptionGroup
extends OptionGroup

A TabbedOptionGroup uses a JTabbedPane to distribute its OptionGroup members into several tabs. It usees the following resoureces:

Resource name Usage
option.group.groupname.type A TabbedOptionGroup is designated by the type tab.
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.numtabs The number of tabs in the group.
option.group.groupname.tabn.group The name of the OptionGroup to put on the nth tab, where n is between 1 and numtabs.
option.group.groupname.tabn.title The title for the nth tab, where n is between 1 and numtabs.
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.10 $
Author:
Gregor Schmid

Field Summary
protected  javax.swing.JTabbedPane pane
          The JTabbedPane Component.
 
Fields inherited from class de.qfs.lib.option.OptionGroup
disabled, enabled, members, name, options, parent, title, titleBorder
 
Constructor Summary
protected TabbedOptionGroup()
          No arg constructor for customized OptionGroups.
  TabbedOptionGroup(java.lang.String name, OptionSet options)
          Create a new TabbedOptionGroup.
 
Method Summary
protected  void createMembers()
          Create the tabs for the TabbedOptionGroup.
 java.awt.Component getComponent()
          Get the AWT Component for the OptionGroup.
protected  void makePane()
          Create the JTabbedPane for the tab members.
 
Methods inherited from class de.qfs.lib.option.OptionGroup
checkValues, findEdit, findGroup, getGroup, getIndexOfMember, getMember, getMemberCount, getName, getParentGroup, 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

pane

protected javax.swing.JTabbedPane pane
The JTabbedPane Component.
Constructor Detail

TabbedOptionGroup

protected TabbedOptionGroup()
No arg constructor for customized OptionGroups.

TabbedOptionGroup

public TabbedOptionGroup(java.lang.String name,
                         OptionSet options)
Create a new TabbedOptionGroup.
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.

createMembers

protected void createMembers()
Create the tabs for the TabbedOptionGroup.
Overrides:
createMembers in class OptionGroup

makePane

protected void makePane()
Create the JTabbedPane for the tab members.

qflib 0.98.0