/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* 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:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.ide.ui.loaders;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.assistedinject.Assisted;
import javax.validation.constraints.NotNull;
/**
* Factory to create instances of PopupLoaderImpl.
*
* @author Vitaliy Guliy
*/
public interface PopupLoaderFactory {
/**
* Creates an instance of PopupLoaderImpl
*
* @param title
* loader title
* @param description
* description
* @return
* instance of PopupLoaderImpl
*/
PopupLoaderImpl getPopup(@NotNull @Assisted("title") String title,
@NotNull @Assisted("description") String description);
/**
* Creates an instance of PopupLoaderImpl
*
* @param title
* loader title
* @param description
* description
* @return
* instance of PopupLoaderImpl
*/
PopupLoaderImpl getPopup(@NotNull @Assisted("title") String title,
@NotNull @Assisted("description") String description,
@NotNull @Assisted("widget") Widget content);
}