KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > viewers > IStructuredContentProvider


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.viewers;
12
13 /**
14  * An interface to content providers for structured viewers.
15  *
16  * @see StructuredViewer
17  */

18 public interface IStructuredContentProvider extends IContentProvider {
19     /**
20      * Returns the elements to display in the viewer
21      * when its input is set to the given element.
22      * These elements can be presented as rows in a table, items in a list, etc.
23      * The result is not modified by the viewer.
24      *
25      * @param inputElement the input element
26      * @return the array of elements to display in the viewer
27      */

28     public Object JavaDoc[] getElements(Object JavaDoc inputElement);
29 }
30
Popular Tags