just updated Java doc
This commit is contained in:
parent
b2f9c350c9
commit
7795335590
|
@ -19,17 +19,17 @@ import com.google.gwt.user.client.ui.Frame;
|
|||
import com.google.gwt.user.client.ui.Image;
|
||||
import com.google.gwt.user.client.ui.NamedFrame;
|
||||
|
||||
|
||||
/**
|
||||
* The Class CkanInternalFramePanel.
|
||||
* The Class CkanFramePanel.
|
||||
*
|
||||
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
||||
* Jun 9, 2016
|
||||
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||
*
|
||||
* Feb 25, 2022
|
||||
*/
|
||||
public class CkanFramePanel extends FlowPanel{
|
||||
public class CkanFramePanel extends FlowPanel {
|
||||
|
||||
private NamedFrame frame;
|
||||
//private static final String FRAME_NAME = "ckan-content-frame";
|
||||
// private static final String FRAME_NAME = "ckan-content-frame";
|
||||
private HandlerManager eventBus;
|
||||
private Image loading = new Image(CkanPortletResources.ICONS.loading());
|
||||
private String messageToSend;
|
||||
|
@ -48,9 +48,7 @@ public class CkanFramePanel extends FlowPanel{
|
|||
* Post message.
|
||||
*
|
||||
* @param msg the msg (as json)
|
||||
* @param javaScriptObject
|
||||
* @param
|
||||
* @param
|
||||
* @param frameName the frame name
|
||||
*/
|
||||
protected native void sendMessage(String msg, String frameName) /*-{
|
||||
console.log("Sending message " + msg);
|
||||
|
@ -58,7 +56,7 @@ public class CkanFramePanel extends FlowPanel{
|
|||
//var f = $wnd.frames[frameName];
|
||||
//console.log(f);
|
||||
//f.contentWindow.postMessage(msg, "*");
|
||||
$wnd.frames[frameName].postMessage(msg,"*")
|
||||
$wnd.frames[frameName].postMessage(msg, "*")
|
||||
console.log("Message sent");
|
||||
}-*/;
|
||||
|
||||
|
@ -75,14 +73,16 @@ public class CkanFramePanel extends FlowPanel{
|
|||
* Instance frame.
|
||||
*
|
||||
* @param ckanUrlConnector the ckan url connector
|
||||
* @param messageToSend the message to send
|
||||
* @param ckanUrl the ckan url
|
||||
* @return the frame
|
||||
*/
|
||||
public Frame instanceFrame(String ckanUrlConnector, final String messageToSend,final String ckanUrl) {
|
||||
GWT.log("Instancing new IFRAME with uri: "+ckanUrlConnector);
|
||||
try{
|
||||
if(frame != null)
|
||||
public Frame instanceFrame(String ckanUrlConnector, final String messageToSend, final String ckanUrl) {
|
||||
GWT.log("Instancing new IFRAME with uri: " + ckanUrlConnector);
|
||||
try {
|
||||
if (frame != null)
|
||||
remove(frame);
|
||||
}catch(Exception e){
|
||||
} catch (Exception e) {
|
||||
print("Error " + e);
|
||||
}
|
||||
|
||||
|
@ -125,9 +125,9 @@ public class CkanFramePanel extends FlowPanel{
|
|||
}
|
||||
|
||||
/**
|
||||
* add loading image
|
||||
* add loading image.
|
||||
*/
|
||||
private void addLoading(){
|
||||
private void addLoading() {
|
||||
this.add(loading);
|
||||
loading.getElement().getStyle().setProperty("margin", "auto");
|
||||
loading.getElement().getStyle().setDisplay(Display.BLOCK);
|
||||
|
|
Loading…
Reference in New Issue