2015-07-07 12:14:25 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.widgets.wsexplorer.client.notification;
|
|
|
|
|
2018-05-18 18:31:46 +02:00
|
|
|
import org.gcube.portlets.widgets.wsexplorer.shared.ItemDTO;
|
2015-07-07 12:14:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Class WorskpaceExplorerNotification.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
|
|
* Jun 29, 2015
|
|
|
|
*/
|
|
|
|
public class WorkspaceExplorerSelectNotification {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The listener interface for receiving worskpaceExplorerSelectNotification events.
|
|
|
|
* The class that is interested in processing a worskpaceExplorerSelectNotification
|
|
|
|
* event implements this interface, and the object created
|
|
|
|
* with that class is registered with a component using the
|
|
|
|
* component's <code>addWorskpaceExplorerSelectNotificationListener<code> method. When
|
|
|
|
* the worskpaceExplorerSelectNotification event occurs, that object's appropriate
|
|
|
|
* method is invoked.
|
|
|
|
*
|
|
|
|
* @see WorskpaceExplorerSelectNotificationEvent
|
|
|
|
*/
|
|
|
|
public interface WorskpaceExplorerSelectNotificationListener {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* On selected item.
|
|
|
|
*
|
|
|
|
* @param item the item
|
|
|
|
*/
|
2018-05-18 18:31:46 +02:00
|
|
|
void onSelectedItem(ItemDTO item);
|
2015-07-07 12:14:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* On aborted.
|
|
|
|
*/
|
|
|
|
void onAborted();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* On failed.
|
|
|
|
*
|
|
|
|
* @param throwable the throwable
|
|
|
|
*/
|
|
|
|
void onFailed(Throwable throwable);
|
2015-08-04 11:11:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* On not valid selection.
|
|
|
|
*/
|
|
|
|
void onNotValidSelection();
|
2015-07-07 12:14:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The listener interface for receiving hasWorskpaceExplorerSelectNotification events.
|
|
|
|
* The class that is interested in processing a hasWorskpaceExplorerSelectNotification
|
|
|
|
* event implements this interface, and the object created
|
|
|
|
* with that class is registered with a component using the
|
|
|
|
* component's <code>addHasWorskpaceExplorerSelectNotificationListener<code> method. When
|
|
|
|
* the hasWorskpaceExplorerSelectNotification event occurs, that object's appropriate
|
|
|
|
* method is invoked.
|
|
|
|
*
|
|
|
|
* @see HasWorskpaceExplorerSelectNotificationEvent
|
|
|
|
*/
|
|
|
|
public interface HasWorskpaceExplorerSelectNotificationListener {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Adds the workspace explorer select notification listener.
|
|
|
|
*
|
|
|
|
* @param handler the handler
|
|
|
|
*/
|
|
|
|
public void addWorkspaceExplorerSelectNotificationListener(WorskpaceExplorerSelectNotificationListener handler);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes the workspace explorer select notification listener.
|
|
|
|
*
|
|
|
|
* @param handler the handler
|
|
|
|
*/
|
|
|
|
public void removeWorkspaceExplorerSelectNotificationListener(WorskpaceExplorerSelectNotificationListener handler);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|