Fixed show information
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@93976 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d386743ff0
commit
f25264e2a1
16
.classpath
16
.classpath
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/tabular-data-csv-import-widget-2.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||
<classpathentry kind="src" output="target/tabular-data-csv-import-widget-2.0.1-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-csv-import-widget-2.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-csv-import-widget-2.0.1-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
|
@ -22,16 +22,16 @@
|
|||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="java"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/tabular-data-csv-import-widget-2.0.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
<classpathentry kind="output" path="target/tabular-data-csv-import-widget-2.0.1-SNAPSHOT/WEB-INF/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -52,8 +52,8 @@ public class CsvCheckPanel extends VerticalPanel {
|
|||
{
|
||||
setSpacing(2);
|
||||
|
||||
HorizontalPanel checkPanel = new HorizontalPanel();
|
||||
checkPanel.setSpacing(4);
|
||||
VerticalPanel checkPanel = new VerticalPanel();
|
||||
checkPanel.setSpacing(6);
|
||||
|
||||
checkConfiguration = new TextButton("Check configuration");
|
||||
checkPanel.add(checkConfiguration);
|
||||
|
@ -140,7 +140,7 @@ public class CsvCheckPanel extends VerticalPanel {
|
|||
protected HorizontalPanel createInfoPanel()
|
||||
{
|
||||
HorizontalPanel infoPanel = new HorizontalPanel();
|
||||
infoPanel.setSpacing(2);
|
||||
infoPanel.setSpacing(3);
|
||||
infoPanel.add(informationImage);
|
||||
HTML message = new HTML("Check the configuration before submit it");
|
||||
infoPanel.add(message);
|
||||
|
@ -150,7 +150,7 @@ public class CsvCheckPanel extends VerticalPanel {
|
|||
protected HorizontalPanel createCheckPanel()
|
||||
{
|
||||
HorizontalPanel checkPanel = new HorizontalPanel();
|
||||
checkPanel.setSpacing(2);
|
||||
checkPanel.setSpacing(3);
|
||||
checkPanel.add(loadingImage);
|
||||
checkPanel.add(new HTML("Checking the configuration..."));
|
||||
return checkPanel;
|
||||
|
@ -159,7 +159,7 @@ public class CsvCheckPanel extends VerticalPanel {
|
|||
protected HorizontalPanel createFailurePanel()
|
||||
{
|
||||
HorizontalPanel failurePanel = new HorizontalPanel();
|
||||
failurePanel.setSpacing(2);
|
||||
failurePanel.setSpacing(3);
|
||||
new ToolTip(failurePanel, new ToolTipConfig("Click to obtain more information"));
|
||||
|
||||
failurePanel.add(failureImage);
|
||||
|
@ -182,7 +182,7 @@ public class CsvCheckPanel extends VerticalPanel {
|
|||
protected HorizontalPanel createSuccessPanel()
|
||||
{
|
||||
HorizontalPanel successPanel = new HorizontalPanel();
|
||||
successPanel.setSpacing(2);
|
||||
successPanel.setSpacing(3);
|
||||
successPanel.add(successImage);
|
||||
successPanel.add(new HTML("Correct."));
|
||||
return successPanel;
|
||||
|
|
|
@ -108,11 +108,17 @@ public class CSVGrid extends Grid<CSVRow> {
|
|||
* Returns the import column mask.
|
||||
* @return an array of boolean where the item is <code>true</code> if the column have to be imported, <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean[] getImportColumnsMask()
|
||||
public ArrayList<Boolean> getImportColumnsMask()
|
||||
{
|
||||
boolean[] columnMask = new boolean[getColumnModel().getColumnCount()];
|
||||
//boolean[] columnMask = new boolean[getColumnModel().getColumnCount()];
|
||||
int limit=getColumnModel().getColumnCount();
|
||||
ArrayList<Boolean> columnMask= new ArrayList<Boolean>();
|
||||
ArrayList<Integer> excluded = gridViewSample.getExcludedColumns();
|
||||
for (int i = 0; i<columnMask.length; i++) columnMask[i] = !excluded.contains(i);
|
||||
for (int i = 0; i<limit; i++) {
|
||||
//columnMask[i] = !excluded.contains(i);
|
||||
Boolean b=!excluded.contains(i);
|
||||
columnMask.add(b);
|
||||
}
|
||||
return columnMask;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue