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:
parent
2adccf5145
commit
00861a8f98
|
@ -30,14 +30,6 @@ public class TabularDataPortlet implements EntryPoint {
|
||||||
|
|
||||||
private static final String JSP_TAG_ID = "tdp";
|
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
|
* Create a remote service proxy to talk to the server-side Greeting
|
||||||
|
|
|
@ -137,6 +137,24 @@ public class CurationToolBar {
|
||||||
structureLayout.setWidget(0, 0, tableTypeButton);
|
structureLayout.setWidget(0, 0, tableTypeButton);
|
||||||
structureLayout.getFlexCellFormatter().setRowSpan(0, 0, 2);
|
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(),
|
changePositionColumnButton = new TextButton(msgs.changePositionColumnButton(),
|
||||||
TabularDataResources.INSTANCE.columnReorder32());
|
TabularDataResources.INSTANCE.columnReorder32());
|
||||||
|
@ -152,8 +170,8 @@ public class CurationToolBar {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
structureLayout.setWidget(0, 1, changePositionColumnButton);
|
structureLayout.setWidget(0, 2, changePositionColumnButton);
|
||||||
structureLayout.getFlexCellFormatter().setRowSpan(0, 1, 2);
|
structureLayout.getFlexCellFormatter().setRowSpan(0, 2, 2);
|
||||||
|
|
||||||
|
|
||||||
changeColumnLabelButton = new TextButton(msgs.changeColumnLabelButton(),
|
changeColumnLabelButton = new TextButton(msgs.changeColumnLabelButton(),
|
||||||
|
@ -170,26 +188,10 @@ public class CurationToolBar {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
structureLayout.setWidget(0, 2, changeColumnLabelButton);
|
structureLayout.setWidget(0, 3, 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.getFlexCellFormatter().setRowSpan(0, 3, 2);
|
structureLayout.getFlexCellFormatter().setRowSpan(0, 3, 2);
|
||||||
|
|
||||||
|
|
||||||
addColumnButton = new TextButton(msgs.addColumnButton(),
|
addColumnButton = new TextButton(msgs.addColumnButton(),
|
||||||
TabularDataResources.INSTANCE.columnAdd32());
|
TabularDataResources.INSTANCE.columnAdd32());
|
||||||
addColumnButton.disable();
|
addColumnButton.disable();
|
||||||
|
|
|
@ -46,25 +46,25 @@ public interface CurationToolBarMessages extends Messages {
|
||||||
@DefaultMessage("Change column type")
|
@DefaultMessage("Change column type")
|
||||||
String columnTypeButtonToolTip();
|
String columnTypeButtonToolTip();
|
||||||
|
|
||||||
@DefaultMessage("Add Column")
|
@DefaultMessage("Add")
|
||||||
String addColumnButton();
|
String addColumnButton();
|
||||||
|
|
||||||
@DefaultMessage("Add Column")
|
@DefaultMessage("Add Column")
|
||||||
String addColumnButtonToolTip();
|
String addColumnButtonToolTip();
|
||||||
|
|
||||||
@DefaultMessage("Delete column")
|
@DefaultMessage("Delete")
|
||||||
String deleteColumnButton();
|
String deleteColumnButton();
|
||||||
|
|
||||||
@DefaultMessage("Delete column")
|
@DefaultMessage("Delete column")
|
||||||
String deleteColumnButtonToolTip();
|
String deleteColumnButtonToolTip();
|
||||||
|
|
||||||
@DefaultMessage("Split Column")
|
@DefaultMessage("Split")
|
||||||
String splitColumnButton();
|
String splitColumnButton();
|
||||||
|
|
||||||
@DefaultMessage("Split Column")
|
@DefaultMessage("Split Column")
|
||||||
String splitColumnButtonToolTip();
|
String splitColumnButtonToolTip();
|
||||||
|
|
||||||
@DefaultMessage("Merge Column")
|
@DefaultMessage("Merge")
|
||||||
String mergeColumnButton();
|
String mergeColumnButton();
|
||||||
|
|
||||||
@DefaultMessage("Merge Column")
|
@DefaultMessage("Merge Column")
|
||||||
|
|
|
@ -10,13 +10,13 @@ changeColumnLabelButton = Labels
|
||||||
changeColumnLabelButtonToolTip = Change column labels
|
changeColumnLabelButtonToolTip = Change column labels
|
||||||
columnTypeButton = Column Type
|
columnTypeButton = Column Type
|
||||||
columnTypeButtonToolTip = Change column type
|
columnTypeButtonToolTip = Change column type
|
||||||
addColumnButton = Add Column
|
addColumnButton = Add
|
||||||
addColumnButtonToolTip = Add Column
|
addColumnButtonToolTip = Add Column
|
||||||
deleteColumnButton = Delete Column
|
deleteColumnButton = Delete
|
||||||
deleteColumnButtonToolTip = Delete Column
|
deleteColumnButtonToolTip = Delete Column
|
||||||
splitColumnButton = Split Column
|
splitColumnButton = Split
|
||||||
splitColumnButtonToolTip = Split Column
|
splitColumnButtonToolTip = Split Column
|
||||||
mergeColumnButton = Merge Column
|
mergeColumnButton = Merge
|
||||||
mergeColumnButtonToolTip = Merge Column
|
mergeColumnButtonToolTip = Merge Column
|
||||||
denormalizeButton = Denormalize
|
denormalizeButton = Denormalize
|
||||||
denormalizeButtonToolTip = Denormalize
|
denormalizeButtonToolTip = Denormalize
|
||||||
|
|
|
@ -10,13 +10,13 @@ changeColumnLabelButton = Etiquetas
|
||||||
changeColumnLabelButtonToolTip = Cambio etiquetas
|
changeColumnLabelButtonToolTip = Cambio etiquetas
|
||||||
columnTypeButton = Tipo Columna
|
columnTypeButton = Tipo Columna
|
||||||
columnTypeButtonToolTip = Cambio tipo de columna
|
columnTypeButtonToolTip = Cambio tipo de columna
|
||||||
addColumnButton = Añadir Columna
|
addColumnButton = Añadir
|
||||||
addColumnButtonToolTip = Añadir la columna
|
addColumnButtonToolTip = Añadir la columna
|
||||||
deleteColumnButton = Eliminar Columna
|
deleteColumnButton = Eliminar
|
||||||
deleteColumnButtonToolTip = Eliminar columna
|
deleteColumnButtonToolTip = Eliminar columna
|
||||||
splitColumnButton = Columna Dividida
|
splitColumnButton = Dividida
|
||||||
splitColumnButtonToolTip = Columna Dividida
|
splitColumnButtonToolTip = Columna Dividida
|
||||||
mergeColumnButton = Fusionar Columna
|
mergeColumnButton = Fusionar
|
||||||
mergeColumnButtonToolTip = Fusionar la columna
|
mergeColumnButtonToolTip = Fusionar la columna
|
||||||
denormalizeButton = Desnormalizar
|
denormalizeButton = Desnormalizar
|
||||||
denormalizeButtonToolTip = Desnormalizar
|
denormalizeButtonToolTip = Desnormalizar
|
||||||
|
|
|
@ -10,13 +10,13 @@ changeColumnLabelButton = Etichette
|
||||||
changeColumnLabelButtonToolTip = Cambia etichette alle colonne
|
changeColumnLabelButtonToolTip = Cambia etichette alle colonne
|
||||||
columnTypeButton = Tipo Colonna
|
columnTypeButton = Tipo Colonna
|
||||||
columnTypeButtonToolTip = Cambia il tipo di colonna
|
columnTypeButtonToolTip = Cambia il tipo di colonna
|
||||||
addColumnButton = Inserisci Colonna
|
addColumnButton = Inserisci
|
||||||
addColumnButtonToolTip = Inserisce colonna
|
addColumnButtonToolTip = Inserisce colonna
|
||||||
deleteColumnButton = Elimina colonna
|
deleteColumnButton = Elimina
|
||||||
deleteColumnButtonToolTip = Elimina colonna
|
deleteColumnButtonToolTip = Elimina colonna
|
||||||
splitColumnButton = Dividi Colonna
|
splitColumnButton = Dividi
|
||||||
splitColumnButtonToolTip = Dividi colonna
|
splitColumnButtonToolTip = Dividi colonna
|
||||||
mergeColumnButton = Unisci colonne
|
mergeColumnButton = Unisci
|
||||||
mergeColumnButtonToolTip = Unisci colonne
|
mergeColumnButtonToolTip = Unisci colonne
|
||||||
denormalizeButton = Denormalizza
|
denormalizeButton = Denormalizza
|
||||||
denormalizeButtonToolTip = Denormalizza
|
denormalizeButtonToolTip = Denormalizza
|
||||||
|
|
Loading…
Reference in New Issue