01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: * Darrell Meyer <darrell@mygwt.net> - derived implementation
11: *******************************************************************************/package net.mygwt.ui.client.viewer;
12:
13: /**
14: * A content provider mediates between the viewer's model and the viewer itself.
15: */
16: public interface IContentProvider {
17:
18: /**
19: * Notifies this content provider that the given viewer's input has been
20: * switched to a different element.
21: *
22: * @param viewer the viewer
23: * @param oldInput the previous input or <code>null</code> if none
24: * @param newInput the new input
25: */
26: public void inputChanged(Viewer viewer, Object oldInput,
27: Object newInput);
28:
29: }
|