added geojson type at client side. Validation will be performed at server side anyway (yet to be implemented)
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@147131 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
05846cd989
commit
fa8d07ec3c
|
@ -1380,8 +1380,7 @@ public class CreateDatasetForm extends Composite{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disable dataset editable fields once the dataset has been
|
* Disable dataset editable fields once the dataset has been successfully created.
|
||||||
* Successfully created.
|
|
||||||
*/
|
*/
|
||||||
protected void disableDatasetFields() {
|
protected void disableDatasetFields() {
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,7 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
((CheckBox)holder).setValue(Boolean.valueOf(field.getDefaultValue()));
|
((CheckBox)holder).setValue(Boolean.valueOf(field.getDefaultValue()));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GeoJSON:
|
||||||
case Text:
|
case Text:
|
||||||
|
|
||||||
holder = new TextArea();
|
holder = new TextArea();
|
||||||
|
@ -352,6 +353,7 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
case Text:
|
case Text:
|
||||||
|
case GeoJSON: // validation for geojson will be performed at server side as well TODO
|
||||||
|
|
||||||
String textAreaValue = getFieldCurrentValue();
|
String textAreaValue = getFieldCurrentValue();
|
||||||
|
|
||||||
|
@ -510,7 +512,7 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Text:
|
case Text:
|
||||||
|
case GeoJSON:
|
||||||
toReturn = ((TextArea)holder).getText();
|
toReturn = ((TextArea)holder).getText();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -609,6 +611,7 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
((CheckBox)holder).setEnabled(false);
|
((CheckBox)holder).setEnabled(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GeoJSON:
|
||||||
case Text:
|
case Text:
|
||||||
|
|
||||||
((TextArea)holder).setEnabled(false);
|
((TextArea)holder).setEnabled(false);
|
||||||
|
|
Loading…
Reference in New Issue