org.eclipse.jface.viewers
Class ArrayContentProvider
java.lang.Object
|
+--org.eclipse.jface.viewers.ArrayContentProvider
- All Implemented Interfaces:
- IContentProvider, IStructuredContentProvider
- public class ArrayContentProvider
- extends Object
- implements IStructuredContentProvider
This implementation of IStructuredContentProvider
handles
the case where the input is an unchanging array or collection of elements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayContentProvider
public ArrayContentProvider()
getElements
public Object[] getElements(Object inputElement)
- Returns the elements in the input, which must be either an array or a
Collection
.
- Specified by:
getElements
in interface IStructuredContentProvider
- Following copied from interface:
org.eclipse.jface.viewers.IStructuredContentProvider
- Parameters:
inputElement
- the input element- Returns:
- the array of elements to display in the viewer
inputChanged
public void inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
- This implementation does nothing.
- Specified by:
inputChanged
in interface IContentProvider
- Following copied from interface:
org.eclipse.jface.viewers.IContentProvider
- Parameters:
viewer
- the vieweroldInput
- the old input element, or null
if the viewer
did not previously have an inputnewInput
- the new input element, or null
if the viewer
does not have an input
dispose
public void dispose()
- This implementation does nothing.
- Specified by:
dispose
in interface IContentProvider
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.