view org.eclipse.jface/src/org/eclipse/jface/dialogs/IPageChangeProvider.d @ 104:88652073d1c2

More work on icu
author Frank Benoit <benoit@tionex.de>
date Sat, 02 May 2009 11:27:24 +0200
parents bc29606a740c
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 * Port to the D programming language:
 *     Frank Benoit <benoit@tionex.de>
 *******************************************************************************/
module org.eclipse.jface.dialogs.IPageChangeProvider;

import org.eclipse.jface.dialogs.IPageChangedListener;

import java.lang.all;

/**
 * Minimal interface to a page change provider. Used for dialogs which can
 * switch between multiple pages.
 *
 * @since 3.1
 */
public interface IPageChangeProvider {
    /**
     * Returns the currently selected page in the dialog.
     *
     * @return the selected page in the dialog or <code>null</code> if none is
     *         selected. The type may be domain specific. In
     *         the JFace provided dialogs this will be an instance of
     *         <code>IDialogPage</code>.
     */
    Object getSelectedPage();

    /**
     * Adds a listener for page changes in this page change provider. Has no
     * effect if an identical listener is already registered.
     *
     * @param listener
     *            a page changed listener
     */
    void addPageChangedListener(IPageChangedListener listener);

    /**
     * Removes the given page change listener from this page change provider.
     * Has no effect if an identical listener is not registered.
     *
     * @param listener
     *            a page changed listener
     */
    void removePageChangedListener(IPageChangedListener listener);

}