72 lines
1.6 KiB
Java
72 lines
1.6 KiB
Java
package org.gcube.portlets.user.geoportaldataentry.client.ui;
|
|
|
|
import org.gcube.portlets.user.geoportaldataentry.client.ui.utils.LoaderIcon;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.uibinder.client.UiBinder;
|
|
import com.google.gwt.uibinder.client.UiField;
|
|
import com.google.gwt.user.client.ui.Composite;
|
|
import com.google.gwt.user.client.ui.HTMLPanel;
|
|
import com.google.gwt.user.client.ui.Widget;
|
|
|
|
// TODO: Auto-generated Javadoc
|
|
/**
|
|
* The Class GeonaMainPanel.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
|
*
|
|
* Oct 13, 2020
|
|
*/
|
|
public class GeonaMainPanel extends Composite {
|
|
|
|
/** The geona main form panel. */
|
|
@UiField
|
|
HTMLPanel geonaMainFormPanel;
|
|
|
|
/** The loader. */
|
|
@UiField
|
|
LoaderIcon loader;
|
|
|
|
/** The ui binder. */
|
|
private static GeonaMainPanelUiBinder uiBinder = GWT.create(GeonaMainPanelUiBinder.class);
|
|
|
|
/**
|
|
* The Interface GeonaMainPanelUiBinder.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
|
*
|
|
* Oct 13, 2020
|
|
*/
|
|
interface GeonaMainPanelUiBinder extends UiBinder<Widget, GeonaMainPanel> {
|
|
}
|
|
|
|
/**
|
|
* Instantiates a new geona main panel.
|
|
*/
|
|
public GeonaMainPanel() {
|
|
initWidget(uiBinder.createAndBindUi(this));
|
|
}
|
|
|
|
/**
|
|
* Adds the form panel.
|
|
*
|
|
* @param formPanel the form panel
|
|
*/
|
|
public void addFormPanel(GeonaDataEntryMainForm formPanel) {
|
|
geonaMainFormPanel.add(formPanel);
|
|
}
|
|
|
|
|
|
/**
|
|
* Sets the loader visible.
|
|
*
|
|
* @param txtHTML the txt HTML
|
|
* @param visible the visible
|
|
*/
|
|
public void setLoaderVisible(String txtHTML, boolean visible){
|
|
loader.setText(txtHTML);
|
|
loader.setVisible(visible);
|
|
}
|
|
|
|
}
|