Changed behaviour for Show Bottom when clicking on URL
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@135029 82a268e6-3cf1-43bd-a215-b396298e98cftask/19600
parent
a36472ea91
commit
ffd949bf99
@ -0,0 +1,54 @@
|
||||
package org.gcube.portlets.user.workspace.client.event;
|
||||
|
||||
import org.gcube.portlets.user.workspace.client.model.FileModel;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
|
||||
/**
|
||||
* The Class ShowUrlEvent.
|
||||
*
|
||||
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
||||
* Nov 29, 2016
|
||||
*/
|
||||
public class ShowUrlEvent extends GwtEvent<ShowUrlEventHandler> {
|
||||
public static Type<ShowUrlEventHandler> TYPE = new Type<ShowUrlEventHandler>();
|
||||
|
||||
private FileModel sourceFileModel = null; //Url page
|
||||
|
||||
/**
|
||||
* Instantiates a new show url event.
|
||||
*
|
||||
* @param fileSourceModel the file source model
|
||||
*/
|
||||
public ShowUrlEvent(FileModel fileSourceModel) {
|
||||
this.sourceFileModel = fileSourceModel;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
|
||||
*/
|
||||
@Override
|
||||
public Type<ShowUrlEventHandler> getAssociatedType() {
|
||||
// TODO Auto-generated method stub
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
|
||||
*/
|
||||
@Override
|
||||
protected void dispatch(ShowUrlEventHandler handler) {
|
||||
handler.onClickUrl(this);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the source file model.
|
||||
*
|
||||
* @return the source file model
|
||||
*/
|
||||
public FileModel getSourceFileModel() {
|
||||
return sourceFileModel;
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package org.gcube.portlets.user.workspace.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
public interface ShowUrlEventHandler extends EventHandler {
|
||||
void onClickUrl(ShowUrlEvent openUrlEvent);
|
||||
}
|
Loading…
Reference in New Issue