workspace-explorer/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/notification/WorskpaceExplorerNotificati...

86 lines
2.2 KiB
Java

/**
*
*/
package org.gcube.portlets.widgets.wsexplorer.client.notification;
import org.gcube.portlets.widgets.wsexplorer.shared.Item;
/**
* The Class WorskpaceExplorerNotification.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Jun 29, 2015
*/
public class WorskpaceExplorerNotification {
/**
* The listener interface for receiving worskpaceExplorerNotification events.
* The class that is interested in processing a worskpaceExplorerNotification
* event implements this interface, and the object created
* with that class is registered with a component using the
* component's <code>addWorskpaceExplorerNotificationListener<code> method. When
* the worskpaceExplorerNotification event occurs, that object's appropriate
* method is invoked.
*
* @see WorskpaceExplorerNotificationEvent
*/
public interface WorskpaceExplorerNotificationListener {
/**
* On selecte item.
*
* @param expressionWrapperNotification the expression wrapper notification
*/
void onSelectedItem(Item item);
/**
* On aborted.
*/
void onAborted();
/**
* On failed.
*
* @param throwable the throwable
*/
void onFailed(Throwable throwable);
}
/**
* The listener interface for receiving hasWorskpaceExplorerNotification events.
* The class that is interested in processing a hasWorskpaceExplorerNotification
* event implements this interface, and the object created
* with that class is registered with a component using the
* component's <code>addHasWorskpaceExplorerNotificationListener<code> method. When
* the hasWorskpaceExplorerNotification event occurs, that object's appropriate
* method is invoked.
*
* @see HasWorskpaceExplorerNotificationEvent
*/
public interface HasWorskpaceExplorerNotificationListener {
/**
* Adds the workspace explorer notification listener.
*
* @param handler the handler
*/
public void addWorkspaceExplorerNotificationListener(WorskpaceExplorerNotificationListener handler);
/**
* Removes the workspace explorer notification listener.
*
* @param handler the handler
*/
public void removeWorkspaceExplorerNotificationListener(WorskpaceExplorerNotificationListener handler);
}
}