Added alert message
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@84130 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ab0e39105c
commit
5c1368ce60
|
@ -11,10 +11,13 @@ import com.allen_sauer.gwt.log.client.Log;
|
|||
import com.google.gwt.user.client.Command;
|
||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||
import com.sencha.gxt.widget.core.client.FramedPanel;
|
||||
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
||||
import com.sencha.gxt.widget.core.client.button.TextButton;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
|
||||
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
|
||||
import com.sencha.gxt.widget.core.client.event.HideEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||
import com.sencha.gxt.widget.core.client.form.FieldLabel;
|
||||
import com.sencha.gxt.widget.core.client.form.FieldSet;
|
||||
|
@ -112,6 +115,17 @@ public class CSVTableDetailCard extends WizardCard {
|
|||
|| rights.getValue() == null || rights.getValue().isEmpty()
|
||||
|
||||
) {
|
||||
AlertMessageBox d = new AlertMessageBox(
|
||||
"Attention!", "Fill in all fields");
|
||||
d.addHideHandler(new HideHandler() {
|
||||
|
||||
@Override
|
||||
public void onHide(HideEvent event) {
|
||||
//
|
||||
}
|
||||
|
||||
});
|
||||
d.show();
|
||||
return;
|
||||
} else {
|
||||
name.setReadOnly(true);
|
||||
|
|
Loading…
Reference in New Issue