Added Template
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@91298 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
01f6b23d1e
commit
ec66d3fed8
|
@ -4,48 +4,15 @@
|
|||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<dependent-module archiveName="tabular-data-widgetx-tdx-source-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widgetx-tdx-source/tabular-data-widgetx-tdx-source">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-widgetx-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widgetx/tabular-data-widgetx">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-widget-common-event-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-widget-common-event/tabular-data-widget-common-event">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-gwt-service-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-gwt-service/tabular-data-gwt-service">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-wizard-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-wizard-widget/tabular-data-wizard-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-csv-import-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-import-widget/tabular-data-csv-import-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-sdmx-import-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-sdmx-import-widget/tabular-data-sdmx-import-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-open-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-open-widget/tabular-data-open-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-csv-export-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-csv-export-widget/tabular-data-csv-export-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-sdmx-export-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-sdmx-export-widget/tabular-data-sdmx-export-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-toolbox-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-toolbox-widget/tabular-data-toolbox-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-information-widget-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-information-widget/tabular-data-information-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-metadata-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-metadata-widget/tabular-data-metadata-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="tabular-data-column-widget-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/tabular-data-column-widget/tabular-data-column-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="context-root" value="tabular-data-portlet"/>
|
||||
<property name="java-output-path" value="/tabular-data-portlet/target/tabular-data-portlet-2.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</wb-module>
|
||||
|
|
8
pom.xml
8
pom.xml
|
@ -244,6 +244,14 @@
|
|||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT]</version>
|
||||
</dependency>
|
||||
|
||||
<!-- tabular-data-template -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.user.tdtemplate</groupId>
|
||||
<artifactId>tabular-data-template</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- LOGGING -->
|
||||
<dependency>
|
||||
<groupId>com.allen-sauer.gwt.log</groupId>
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.WidgetRequestTyp
|
|||
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridHeaderOperationId;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardListener;
|
||||
import org.gcube.portlets.user.tdtemplate.client.TdTemplateController;
|
||||
import org.gcube.portlets.user.tdwx.client.TabularDataX;
|
||||
import org.gcube.portlets.user.tdwx.shared.model.TableId;
|
||||
|
||||
|
@ -289,8 +290,10 @@ public class TabularDataController {
|
|||
case EXPORTJSON:
|
||||
break;
|
||||
case TEMPLATEOPEN:
|
||||
openTemplateOpen();
|
||||
break;
|
||||
case TEMPLATENEW:
|
||||
openTemplateNew();
|
||||
break;
|
||||
case SHARE:
|
||||
break;
|
||||
|
@ -613,7 +616,16 @@ public class TabularDataController {
|
|||
tdTaskController.updateTasks(true);
|
||||
tdTaskMainWindow.show();
|
||||
}
|
||||
|
||||
|
||||
protected void openTemplateNew(){
|
||||
TdTemplateController tdTemplateController= new TdTemplateController();
|
||||
tdTemplateController.getWindowTemplatePanel().show();
|
||||
}
|
||||
|
||||
protected void openTemplateOpen(){
|
||||
|
||||
}
|
||||
|
||||
protected void openColumnTYPE() {
|
||||
openColumnTYPE(null);
|
||||
}
|
||||
|
|
|
@ -266,7 +266,7 @@ public class FileToolBar {
|
|||
templateGroup.setId("Template");
|
||||
templateGroup.setStyleName("ribbon");
|
||||
templateGroup.setHeadingText("Template");
|
||||
templateGroup.disable();
|
||||
//templateGroup.disable();
|
||||
toolBar.add(templateGroup);
|
||||
|
||||
FlexTable templateLayout = new FlexTable();
|
||||
|
@ -292,7 +292,7 @@ public class FileToolBar {
|
|||
|
||||
templateNewButton = new TextButton("New",
|
||||
TabularDataResources.INSTANCE.templateEdit32());
|
||||
templateNewButton.disable();
|
||||
//templateNewButton.disable();
|
||||
templateNewButton.setToolTip("New");
|
||||
templateNewButton.setScale(ButtonScale.LARGE);
|
||||
templateNewButton.setIconAlign(IconAlign.TOP);
|
||||
|
@ -489,6 +489,7 @@ public class FileToolBar {
|
|||
exportJSONButton.disable();
|
||||
exportSDMXButton.disable();
|
||||
templateOpenButton.disable();
|
||||
templateNewButton.enable();
|
||||
timelineButton.disable();
|
||||
break;
|
||||
case TR_CLOSE:
|
||||
|
@ -504,6 +505,7 @@ public class FileToolBar {
|
|||
exportJSONButton.disable();
|
||||
exportSDMXButton.disable();
|
||||
templateOpenButton.disable();
|
||||
templateNewButton.enable();
|
||||
timelineButton.disable();
|
||||
break;
|
||||
case TR_OPEN:
|
||||
|
@ -524,6 +526,7 @@ public class FileToolBar {
|
|||
exportCSVButton.enable();
|
||||
exportJSONButton.disable();
|
||||
templateOpenButton.disable();
|
||||
templateNewButton.enable();
|
||||
timelineButton.enable();
|
||||
break;
|
||||
case WIZARD_OPEN:
|
||||
|
@ -539,6 +542,7 @@ public class FileToolBar {
|
|||
exportJSONButton.disable();
|
||||
exportSDMXButton.disable();
|
||||
templateOpenButton.disable();
|
||||
templateNewButton.disable();
|
||||
timelineButton.disable();
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue