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:
parent
06619fc550
commit
6f0fab052d
|
@ -24,6 +24,8 @@ public class CreateDefColumnDialog extends Window {
|
||||||
|
|
||||||
public CreateDefColumnDialog(String id, TableType tableType,
|
public CreateDefColumnDialog(String id, TableType tableType,
|
||||||
EventBus eventBus) {
|
EventBus eventBus) {
|
||||||
|
super();
|
||||||
|
Log.debug("CreateDefColumnDialog [id: "+id+", tableType: "+tableType+"]");
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.tableType = tableType;
|
this.tableType = tableType;
|
||||||
initWindow();
|
initWindow();
|
||||||
|
|
|
@ -87,6 +87,7 @@ public class CreateDefColumnPanel extends FramedPanel {
|
||||||
public CreateDefColumnPanel(CreateDefColumnDialog parent, String id,
|
public CreateDefColumnPanel(CreateDefColumnDialog parent, String id,
|
||||||
TableType tableType, EventBus eventBus) {
|
TableType tableType, EventBus eventBus) {
|
||||||
super();
|
super();
|
||||||
|
Log.debug("CreateDefColumnPanel[parent: "+parent+", id: "+id+", tableType: "+tableType);
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.tableType = tableType;
|
this.tableType = tableType;
|
||||||
|
@ -255,6 +256,8 @@ public class CreateDefColumnPanel extends FramedPanel {
|
||||||
LocaleTypeElement localeElement = comboLocaleType.getCurrentValue();
|
LocaleTypeElement localeElement = comboLocaleType.getCurrentValue();
|
||||||
String valueDefault = defaultValue.getCurrentValue();
|
String valueDefault = defaultValue.getCurrentValue();
|
||||||
|
|
||||||
|
Log.debug("CheckValue: label: " + lab + ", type: " + typeElement
|
||||||
|
+ ", locale: " + localeElement + ", default: " + valueDefault);
|
||||||
if (lab == null || lab.isEmpty()) {
|
if (lab == null || lab.isEmpty()) {
|
||||||
UtilsGXT3.alert("Attention", "Add a label");
|
UtilsGXT3.alert("Attention", "Add a label");
|
||||||
return;
|
return;
|
||||||
|
@ -286,8 +289,9 @@ public class CreateDefColumnPanel extends FramedPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DefNewColumn defNewColumn = new DefNewColumn(id, lab,
|
DefNewColumn defNewColumn = new DefNewColumn(id, lab, currentType,
|
||||||
currentType, localeName, valueDefault);
|
localeName, valueDefault);
|
||||||
|
Log.debug("DefNewColumn:" + defNewColumn);
|
||||||
fireCompleted(defNewColumn);
|
fireCompleted(defNewColumn);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue