|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector y.option.OptionSection
public class OptionSection
This class represents a section within an OptionHandler
.
It bundles a set of OptionItem
objects.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_CONTEXT
Attribute key used to store the section context handlername . |
static java.lang.String |
ATTRIBUTE_EXPANDED_TRACKER
|
static java.lang.String |
ATTRIBUTE_LONG_DESCRIPTION
Attribute key used to store a detailed description. |
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
OptionSection(java.lang.String name)
Creates a new instance of OptionSection. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(java.lang.String propertyname,
java.beans.PropertyChangeListener pcl)
Adds a PropertyChangeListener to the listener list for a specific property. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the attribute with the specified name. |
javax.swing.JComponent |
getEditor(int editorWidth)
Deprecated. Use EditorFactory.createEditor(y.option.OptionHandler) instead. |
javax.swing.JComponent |
getEditor(int editorWidth,
GuiFactory factory,
java.lang.String handlerName)
Deprecated. Use EditorFactory.createEditor(y.option.OptionHandler) instead. |
java.lang.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. |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the specified name. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(java.lang.String propertyname,
java.beans.PropertyChangeListener pcl)
Removes a PropertyChangeListener from the listener list for a specific property. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an arbitrary attribute with the specified name and value. |
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 |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_CONTEXT
handlername
.
public static final java.lang.String ATTRIBUTE_LONG_DESCRIPTION
public static final java.lang.String ATTRIBUTE_EXPANDED_TRACKER
Constructor Detail |
---|
public OptionSection(java.lang.String name)
name
- te name of the section.Method Detail |
---|
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface AttributeOwner
name
- the name of the attribute being queried
public void removeAttribute(java.lang.String name)
PropertyChange
events.
removeAttribute
in interface AttributeOwner
name
- the name of the attribute being removedpublic void setAttribute(java.lang.String name, java.lang.Object value)
null
, this method will remove the attribute.
PropertyChange
events.
setAttribute
in interface AttributeOwner
name
- the name of the attribute being addedvalue
- the value of the attribute being addedpublic java.lang.String getName()
public javax.swing.JComponent getEditor(int editorWidth)
EditorFactory.createEditor(y.option.OptionHandler)
instead.
public javax.swing.JComponent getEditor(int editorWidth, GuiFactory factory, java.lang.String handlerName)
EditorFactory.createEditor(y.option.OptionHandler)
instead.
public int itemCount()
public OptionItem item(int index)
index
within this section.
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface PropertyChangeReporter
pcl
- the PropertyChangeListener to be addedremovePropertyChangeListener(java.beans.PropertyChangeListener)
,
addPropertyChangeListener(String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface PropertyChangeReporter
pcl
- the PropertyChangeListener to be removedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(String,java.beans.PropertyChangeListener)
public void addPropertyChangeListener(java.lang.String propertyname, java.beans.PropertyChangeListener pcl)
addPropertyChangeListener
in interface PropertyChangeReporter
propertyname
- the name of the property to receive change
notifications forpcl
- the PropertyChangeListener to be addedaddPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(String,java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.lang.String propertyname, java.beans.PropertyChangeListener pcl)
removePropertyChangeListener
in interface PropertyChangeReporter
propertyname
- a valid property namepcl
- the PropertyChangeListener to be removedaddPropertyChangeListener(String,java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |