209: TDM - Show the resources through a ListView widget

Task-Url: https://support.d4science.org/issues/209

Updated ResourcesListView

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@115247 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-06-05 16:42:12 +00:00
parent 2adccf5145
commit 00861a8f98
6 changed files with 39 additions and 45 deletions

View File

@ -30,15 +30,7 @@ public class TabularDataPortlet implements EntryPoint {
private static final String JSP_TAG_ID = "tdp";
/**
*
*/
public static final int TOOLBOX_WIDTH = 300;
/**
*
*/
public static final int TOOLBOX_HEIGHT = 800;
/**
* Create a remote service proxy to talk to the server-side Greeting
* service.

View File

@ -137,6 +137,24 @@ public class CurationToolBar {
structureLayout.setWidget(0, 0, tableTypeButton);
structureLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
columnTypeButton = new TextButton(msgs.columnTypeButton(),
TabularDataResources.INSTANCE.columnType32());
columnTypeButton.disable();
columnTypeButton.setScale(ButtonScale.LARGE);
columnTypeButton.setIconAlign(IconAlign.TOP);
columnTypeButton.setToolTip(msgs.columnTypeButtonToolTip());
columnTypeButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
columnTypeButton.addSelectHandler(new SelectHandler() {
public void onSelect(SelectEvent event) {
eventBus.fireEvent(new RibbonEvent(RibbonType.COLUMN_TYPE));
}
});
structureLayout.setWidget(0, 1, columnTypeButton);
structureLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
changePositionColumnButton = new TextButton(msgs.changePositionColumnButton(),
TabularDataResources.INSTANCE.columnReorder32());
@ -152,8 +170,8 @@ public class CurationToolBar {
}
});
structureLayout.setWidget(0, 1, changePositionColumnButton);
structureLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
structureLayout.setWidget(0, 2, changePositionColumnButton);
structureLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
changeColumnLabelButton = new TextButton(msgs.changeColumnLabelButton(),
@ -170,26 +188,10 @@ public class CurationToolBar {
}
});
structureLayout.setWidget(0, 2, changeColumnLabelButton);
structureLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
columnTypeButton = new TextButton(msgs.columnTypeButton(),
TabularDataResources.INSTANCE.columnType32());
columnTypeButton.disable();
columnTypeButton.setScale(ButtonScale.LARGE);
columnTypeButton.setIconAlign(IconAlign.TOP);
columnTypeButton.setToolTip(msgs.columnTypeButtonToolTip());
columnTypeButton.setArrowAlign(ButtonArrowAlign.BOTTOM);
columnTypeButton.addSelectHandler(new SelectHandler() {
public void onSelect(SelectEvent event) {
eventBus.fireEvent(new RibbonEvent(RibbonType.COLUMN_TYPE));
}
});
structureLayout.setWidget(0, 3, columnTypeButton);
structureLayout.setWidget(0, 3, changeColumnLabelButton);
structureLayout.getFlexCellFormatter().setRowSpan(0, 3, 2);
addColumnButton = new TextButton(msgs.addColumnButton(),
TabularDataResources.INSTANCE.columnAdd32());
addColumnButton.disable();

View File

@ -46,25 +46,25 @@ public interface CurationToolBarMessages extends Messages {
@DefaultMessage("Change column type")
String columnTypeButtonToolTip();
@DefaultMessage("Add Column")
@DefaultMessage("Add")
String addColumnButton();
@DefaultMessage("Add Column")
String addColumnButtonToolTip();
@DefaultMessage("Delete column")
@DefaultMessage("Delete")
String deleteColumnButton();
@DefaultMessage("Delete column")
String deleteColumnButtonToolTip();
@DefaultMessage("Split Column")
@DefaultMessage("Split")
String splitColumnButton();
@DefaultMessage("Split Column")
String splitColumnButtonToolTip();
@DefaultMessage("Merge Column")
@DefaultMessage("Merge")
String mergeColumnButton();
@DefaultMessage("Merge Column")

View File

@ -10,13 +10,13 @@ changeColumnLabelButton = Labels
changeColumnLabelButtonToolTip = Change column labels
columnTypeButton = Column Type
columnTypeButtonToolTip = Change column type
addColumnButton = Add Column
addColumnButton = Add
addColumnButtonToolTip = Add Column
deleteColumnButton = Delete Column
deleteColumnButton = Delete
deleteColumnButtonToolTip = Delete Column
splitColumnButton = Split Column
splitColumnButton = Split
splitColumnButtonToolTip = Split Column
mergeColumnButton = Merge Column
mergeColumnButton = Merge
mergeColumnButtonToolTip = Merge Column
denormalizeButton = Denormalize
denormalizeButtonToolTip = Denormalize

View File

@ -10,13 +10,13 @@ changeColumnLabelButton = Etiquetas
changeColumnLabelButtonToolTip = Cambio etiquetas
columnTypeButton = Tipo Columna
columnTypeButtonToolTip = Cambio tipo de columna
addColumnButton = Añadir Columna
addColumnButton = Añadir
addColumnButtonToolTip = Añadir la columna
deleteColumnButton = Eliminar Columna
deleteColumnButton = Eliminar
deleteColumnButtonToolTip = Eliminar columna
splitColumnButton = Columna Dividida
splitColumnButton = Dividida
splitColumnButtonToolTip = Columna Dividida
mergeColumnButton = Fusionar Columna
mergeColumnButton = Fusionar
mergeColumnButtonToolTip = Fusionar la columna
denormalizeButton = Desnormalizar
denormalizeButtonToolTip = Desnormalizar

View File

@ -10,13 +10,13 @@ changeColumnLabelButton = Etichette
changeColumnLabelButtonToolTip = Cambia etichette alle colonne
columnTypeButton = Tipo Colonna
columnTypeButtonToolTip = Cambia il tipo di colonna
addColumnButton = Inserisci Colonna
addColumnButton = Inserisci
addColumnButtonToolTip = Inserisce colonna
deleteColumnButton = Elimina colonna
deleteColumnButton = Elimina
deleteColumnButtonToolTip = Elimina colonna
splitColumnButton = Dividi Colonna
splitColumnButton = Dividi
splitColumnButtonToolTip = Dividi colonna
mergeColumnButton = Unisci colonne
mergeColumnButton = Unisci
mergeColumnButtonToolTip = Unisci colonne
denormalizeButton = Denormalizza
denormalizeButtonToolTip = Denormalizza