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
This commit is contained in:
Giancarlo Panichi 2014-04-04 14:42:14 +00:00 committed by Giancarlo Panichi
parent 209a69a869
commit 2499bce31e
3 changed files with 14 additions and 4 deletions

View File

@ -84,14 +84,18 @@ public class TemplateApplyPanel extends FramedPanel {
ColumnConfig<TemplateData, String> nameCol = new ColumnConfig<TemplateData, String>(
props.name(), 120, "Name");
ColumnConfig<TemplateData, String> categoryCol = new ColumnConfig<TemplateData, String>(
props.category(), 60, "Category");
ColumnConfig<TemplateData, String> agencyCol = new ColumnConfig<TemplateData, String>(
props.agency(), 120, "Agency");
props.agency(), 100, "Agency");
ColumnConfig<TemplateData, String> descriptionCol = new ColumnConfig<TemplateData, String>(
props.description(), 160, "Description");
props.description(), 120, "Description");
List<ColumnConfig<TemplateData, ?>> l = new ArrayList<ColumnConfig<TemplateData, ?>>();
l.add(nameCol);
l.add(categoryCol);
l.add(agencyCol);
l.add(descriptionCol);

View File

@ -17,6 +17,7 @@ public interface TemplateDataProperties extends PropertyAccess<TemplateData> {
ValueProvider<TemplateData, String> name();
ValueProvider<TemplateData, String> agency();
ValueProvider<TemplateData, String> description();
ValueProvider<TemplateData, String> category();
}

View File

@ -81,14 +81,19 @@ public class TemplateDeletePanel extends FramedPanel {
ColumnConfig<TemplateData, String> nameCol = new ColumnConfig<TemplateData, String>(
props.name(), 120, "Name");
ColumnConfig<TemplateData, String> categoryCol = new ColumnConfig<TemplateData, String>(
props.category(), 60, "Category");
ColumnConfig<TemplateData, String> agencyCol = new ColumnConfig<TemplateData, String>(
props.agency(), 120, "Agency");
props.agency(), 100, "Agency");
ColumnConfig<TemplateData, String> descriptionCol = new ColumnConfig<TemplateData, String>(
props.description(), 160, "Description");
props.description(), 120, "Description");
List<ColumnConfig<TemplateData, ?>> l = new ArrayList<ColumnConfig<TemplateData, ?>>();
l.add(nameCol);
l.add(categoryCol);
l.add(agencyCol);
l.add(descriptionCol);