Fixed DefNewColumnPanel

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@96305 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-29 15:58:17 +00:00
parent 06619fc550
commit 6f0fab052d
2 changed files with 17 additions and 11 deletions

View File

@ -24,6 +24,8 @@ public class CreateDefColumnDialog extends Window {
public CreateDefColumnDialog(String id, TableType tableType,
EventBus eventBus) {
super();
Log.debug("CreateDefColumnDialog [id: "+id+", tableType: "+tableType+"]");
this.eventBus = eventBus;
this.tableType = tableType;
initWindow();

View File

@ -87,6 +87,7 @@ public class CreateDefColumnPanel extends FramedPanel {
public CreateDefColumnPanel(CreateDefColumnDialog parent, String id,
TableType tableType, EventBus eventBus) {
super();
Log.debug("CreateDefColumnPanel[parent: "+parent+", id: "+id+", tableType: "+tableType);
this.parent = parent;
this.eventBus = eventBus;
this.tableType = tableType;
@ -255,6 +256,8 @@ public class CreateDefColumnPanel extends FramedPanel {
LocaleTypeElement localeElement = comboLocaleType.getCurrentValue();
String valueDefault = defaultValue.getCurrentValue();
Log.debug("CheckValue: label: " + lab + ", type: " + typeElement
+ ", locale: " + localeElement + ", default: " + valueDefault);
if (lab == null || lab.isEmpty()) {
UtilsGXT3.alert("Attention", "Add a label");
return;
@ -286,8 +289,9 @@ public class CreateDefColumnPanel extends FramedPanel {
}
}
DefNewColumn defNewColumn = new DefNewColumn(id, lab,
currentType, localeName, valueDefault);
DefNewColumn defNewColumn = new DefNewColumn(id, lab, currentType,
localeName, valueDefault);
Log.debug("DefNewColumn:" + defNewColumn);
fireCompleted(defNewColumn);
}