This class extends the ArrayList class to support direct placement of the
list in a JList or JComboBox.
This class can also listen for PropertyChangeEvents on objects in the
collection which have an
addPropertyChangeListener(PropertyChangeListener l)
method. This option is on by default, but can be turned off to invoid
introspection overhead required to find and invoke this method.
author: Anthony Eden
Add all of the objects in the collection to this collection.
Parameters: collection - The collection to add Return true if this collection was modified
Add all elements in the collection to this list inserting at the
given index.
Parameters: index - The offset index Parameters: collection - The collection to add
See the ArrayList retainAll() method.
Parameters: c - The Collection of objects to retain True if this list was modified
setPropertyChangeListenerEnabled
public void setPropertyChangeListenerEnabled(boolean propertyChangeListenerEnabled)(Code)
Set to false to disable property change listener support. The default
value is true.
Warning: do not change this flag while there are objects in the
collection. Doing so may cause this collection to remain attached to
objects which are removed from the collection.
Parameters: propertyChangeListenerEnabled - Set to false to disable
setSelectedItem
public void setSelectedItem(Object selectedItem)(Code)
Set the selected item. Set this value to null for no selected
item.
Parameters: selectedItem - The new selected item