From 2499bce31edc0426e019f7498aa7f81fbff971d8 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Fri, 4 Apr 2014 14:42:14 +0000 Subject: [PATCH] Added category column to template panel git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@94368 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../tablewidget/client/template/TemplateApplyPanel.java | 8 ++++++-- .../client/template/TemplateDataProperties.java | 1 + .../tablewidget/client/template/TemplateDeletePanel.java | 9 +++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java index 69690cc..a6cc21f 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateApplyPanel.java @@ -84,14 +84,18 @@ public class TemplateApplyPanel extends FramedPanel { ColumnConfig nameCol = new ColumnConfig( props.name(), 120, "Name"); + ColumnConfig categoryCol = new ColumnConfig( + props.category(), 60, "Category"); + ColumnConfig agencyCol = new ColumnConfig( - props.agency(), 120, "Agency"); + props.agency(), 100, "Agency"); ColumnConfig descriptionCol = new ColumnConfig( - props.description(), 160, "Description"); + props.description(), 120, "Description"); List> l = new ArrayList>(); l.add(nameCol); + l.add(categoryCol); l.add(agencyCol); l.add(descriptionCol); diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDataProperties.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDataProperties.java index b5232b0..52333d6 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDataProperties.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDataProperties.java @@ -17,6 +17,7 @@ public interface TemplateDataProperties extends PropertyAccess { ValueProvider name(); ValueProvider agency(); ValueProvider description(); + ValueProvider category(); } diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDeletePanel.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDeletePanel.java index ce49243..1fc8ae5 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDeletePanel.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/template/TemplateDeletePanel.java @@ -81,14 +81,19 @@ public class TemplateDeletePanel extends FramedPanel { ColumnConfig nameCol = new ColumnConfig( props.name(), 120, "Name"); + ColumnConfig categoryCol = new ColumnConfig( + props.category(), 60, "Category"); + + ColumnConfig agencyCol = new ColumnConfig( - props.agency(), 120, "Agency"); + props.agency(), 100, "Agency"); ColumnConfig descriptionCol = new ColumnConfig( - props.description(), 160, "Description"); + props.description(), 120, "Description"); List> l = new ArrayList>(); l.add(nameCol); + l.add(categoryCol); l.add(agencyCol); l.add(descriptionCol);