All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jface.widgets.WidgetSupplier Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
* Copyright (c) 2019 SAP SE and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
*     SAP SE - initial version
******************************************************************************/
package org.eclipse.jface.widgets;

import org.eclipse.pde.api.tools.annotations.NoExtend;
import org.eclipse.pde.api.tools.annotations.NoImplement;
import org.eclipse.swt.widgets.Widget;

/**
 * Represents a supplier for widgets.
 *
 * Used to create a Widget (e.g. Button) in a given parent Widget (e.g.
 * Composite)
 *
 * 

* This is a functional interface whose * functional method is {@link #create(Widget)}. *

* * @param the type of the widget to be created * @param

the type of the parent the widget should be created in * * @since 3.18 */ @NoImplement @NoExtend @FunctionalInterface public interface WidgetSupplier { /** * @param parent widget * @return the created widget */ W create(P parent); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy