| |
|
| java.lang.Object org.eclipse.ui.model.WorkbenchAdapter org.eclipse.ui.model.AdaptableList
All known Subclasses: org.eclipse.ui.internal.dialogs.WizardCollectionElement,
AdaptableList | public class AdaptableList extends WorkbenchAdapter implements IAdaptable(Code) | | A modifiable list of IAdaptable objects.
The list is adaptable to IWorkbenchAdapter , and can be used to
display an arbitrary set of adaptable objects in a viewer.
This class is not intended to be subclassed.
since: 3.0 See Also: org.eclipse.ui.model.IWorkbenchAdapter |
Constructor Summary | |
public | AdaptableList() Creates a new adaptable list. | public | AdaptableList(int initialCapacity) Creates a new adaptable list with the given initial capacity. | public | AdaptableList(IAdaptable[] newChildren) Creates a new adaptable list containing the given children. | public | AdaptableList(Collection c) Creates a new adaptable list containing the elements of the specified
collection, in the order they are returned by the collection's iterator. |
AdaptableList | public AdaptableList()(Code) | | Creates a new adaptable list. All of the elements in the list must
implement IAdaptable .
|
AdaptableList | public AdaptableList(int initialCapacity)(Code) | | Creates a new adaptable list with the given initial capacity.
All of the elements in the list must implement IAdaptable .
Parameters: initialCapacity - the initial capacity of the list |
AdaptableList | public AdaptableList(IAdaptable[] newChildren)(Code) | | Creates a new adaptable list containing the given children.
Parameters: newChildren - the list of children |
AdaptableList | public AdaptableList(Collection c)(Code) | | Creates a new adaptable list containing the elements of the specified
collection, in the order they are returned by the collection's iterator.
All of the elements in the list must implement IAdaptable .
Parameters: c - the initial elements of this list (element type: IAdaptable ) |
add | public AdaptableList add(IAdaptable adaptable)(Code) | | Adds the given adaptable object to this list.
Parameters: adaptable - the new element this list |
getChildren | public Object[] getChildren()(Code) | | Returns the elements in this list.
the elements in this list |
getTypedChildren | public Object[] getTypedChildren(Class type)(Code) | | Return the elements in this list in an array of the given type.
Parameters: type - the type of the array to create the elements in the list since: 3.1 |
remove | public void remove(IAdaptable adaptable)(Code) | | Removes the given adaptable object from this list.
Parameters: adaptable - the element to remove |
size | public int size()(Code) | | Returns the number of children in this list.
the length of this list |
Fields inherited from org.eclipse.ui.model.WorkbenchAdapter | final protected static Object[] NO_CHILDREN(Code)(Java Doc)
|
|
|
|