y.option
Class OptionSection

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--y.option.OptionSection
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class OptionSection
extends Vector

This class represents a section within an OptionHandler. It bundles a set of OptionItem objects.

An OptionSection is represented by a JTabbedPane within an OptionHandler editor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OptionSection(String name)
          Creates a new instance of OptionSection.
 
Method Summary
 JComponent getEditor(int editorWidth)
          Returns the editor component that provides editability of all option items within this section.
 JComponent getEditor(int editorWidth, GuiFactory factory, String handlerName)
          Returns the editor component that provides editability of all option items within this section using the provided factory and handlername to construct internationalized panels
 String getName()
          Returns the name of the section
 OptionItem item(int index)
          Returns the OptionItem at position index within this section.
 int itemCount()
          Returns the number of items within this section.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

OptionSection

public OptionSection(String name)
Creates a new instance of OptionSection.

Parameters:
name - te name of the section.
Method Detail

getName

public String getName()
Returns the name of the section


getEditor

public JComponent getEditor(int editorWidth)
Returns the editor component that provides editability of all option items within this section.


getEditor

public JComponent getEditor(int editorWidth,
                            GuiFactory factory,
                            String handlerName)
Returns the editor component that provides editability of all option items within this section using the provided factory and handlername to construct internationalized panels


itemCount

public int itemCount()
Returns the number of items within this section.


item

public OptionItem item(int index)
Returns the OptionItem at position index within this section.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003