Updated to support new portal theme
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@134604 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
21114e70fd
commit
365401802c
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" output="target/tabular-data-widgetx-1.8.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||
<classpathentry kind="src" output="target/tabular-data-widgetx-1.9.0-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-widgetx-1.8.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||
<classpathentry excluding="**" kind="src" output="target/tabular-data-widgetx-1.9.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
|
@ -40,5 +40,5 @@
|
|||
</classpathentry>
|
||||
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
||||
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
||||
<classpathentry kind="output" path="target/tabular-data-widgetx-1.8.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
<classpathentry kind="output" path="target/tabular-data-widgetx-1.9.0-SNAPSHOT/WEB-INF/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="${groupId}.${artifactId}.1-9-0" date="2016-12-01">
|
||||
<Change>Added fix for support new portal theme</Change>
|
||||
</Changeset>
|
||||
<Changeset component="${groupId}.${artifactId}.1-8-0" date="2015-07-03">
|
||||
<Change>Added different colors for columns of different type [issue #251]</Change>
|
||||
</Changeset>
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
|||
|
||||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>tabular-data-widgetx</artifactId>
|
||||
<version>1.8.0-SNAPSHOT</version>
|
||||
<version>1.9.0-SNAPSHOT</version>
|
||||
|
||||
<name>tabular-data-widgetx</name>
|
||||
<description>Widget that allows visualization of tabular data</description>
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
package org.gcube.portlets.user.tdwx.client;
|
||||
|
||||
import com.sencha.gxt.widget.core.client.toolbar.PagingToolBar;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Giancarlo Panichi email: <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class PagingToolBarX extends PagingToolBar {
|
||||
|
||||
public PagingToolBarX(int pageSize) {
|
||||
super(pageSize);
|
||||
}
|
||||
|
||||
public void fixPageTextWidth() {
|
||||
pageText.getElement()
|
||||
.setAttribute(
|
||||
"style",
|
||||
"width: 30px !important;"
|
||||
+ "margin: 0px;left: 108px;top: 2px;");
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -130,7 +130,7 @@ public class TabularDataXGridPanel extends ContentPanel {
|
|||
|
||||
private GridAndCellSelectionModel<DataRow> sm;
|
||||
|
||||
private PagingToolBar pagingToolBar;
|
||||
private PagingToolBarX pagingToolBar;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -754,9 +754,11 @@ public class TabularDataXGridPanel extends ContentPanel {
|
|||
loader.addLoadHandler(new LoadResultListStoreBinding<FilterPagingLoadConfig, DataRow, PagingLoadResult<DataRow>>(
|
||||
store));
|
||||
|
||||
pagingToolBar = new PagingToolBar(PAGINGDIMENSION);
|
||||
pagingToolBar = new PagingToolBarX(PAGINGDIMENSION);
|
||||
pagingToolBar.getElement().getStyle()
|
||||
.setProperty("borderBottom", "none");
|
||||
pagingToolBar.fixPageTextWidth();
|
||||
pagingToolBar.setItemId("TDMPagingToolBarX");
|
||||
pagingToolBar.bind(loader);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue