KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Selection provider extension interface to allow providers
15  * to notify about post selection changed events.
16  * A post selection changed event is equivalent to selection changed event
17  * if the selection change was triggered by the mouse, but it has a delay
18  * if the selection change is triggered by keyboard navigation.
19  *
20  * @see ISelectionProvider
21  *
22  * @since 3.0
23  */

24 public interface IPostSelectionProvider extends ISelectionProvider {
25
26     /**
27      * Adds a listener for post selection changes in this selection provider.
28      * Has no effect if an identical listener is already registered.
29      *
30      * @param listener a selection changed listener
31      */

32     public void addPostSelectionChangedListener(
33             ISelectionChangedListener listener);
34
35     /**
36      * Removes the given listener for post selection changes from this selection
37      * provider.
38      * Has no affect if an identical listener is not registered.
39      *
40      * @param listener a selection changed listener
41      */

42     public void removePostSelectionChangedListener(
43             ISelectionChangedListener listener);
44
45 }
46
Popular Tags