task_21363 #1
17
pom.xml
17
pom.xml
|
@ -103,7 +103,6 @@
|
|||
<artifactId>gwt-bootstrap</artifactId>
|
||||
<version>2.3.2.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.gwtmaterialdesign</groupId>
|
||||
<artifactId>gwt-material-jquery</artifactId>
|
||||
|
@ -121,13 +120,17 @@
|
|||
<artifactId>gwt-material-table</artifactId>
|
||||
<version>${gwt-material.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.gwtmaterialdesign</groupId>
|
||||
<artifactId>gwt-material-addins</artifactId>
|
||||
<version>${gwt-material.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>com.gwtplatform</groupId> -->
|
||||
<!-- <artifactId>gwtp-mvp-client</artifactId> -->
|
||||
<!-- <version>1.6</version> -->
|
||||
<!-- <scope>provided</scope> -->
|
||||
<!-- </dependency> -->
|
||||
<dependency>
|
||||
<groupId>com.github.gwtmaterialdesign</groupId>
|
||||
<artifactId>gwt-material-themes</artifactId>
|
||||
<version>${gwt-material.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.gcube.datacatalogue</groupId> -->
|
||||
|
|
|
@ -3,16 +3,11 @@
|
|||
<!-- Inherit the core Web Toolkit stuff. -->
|
||||
<inherits name='com.google.gwt.user.User' />
|
||||
|
||||
<!-- Inherit the default GWT style sheet. You can change -->
|
||||
<!-- the theme of your GWT application by uncommenting -->
|
||||
<!-- any one of the following lines. -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard' /> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
<inherits name="gwt.material.design.jquery.JQuery" />
|
||||
|
||||
<inherits
|
||||
name="gwt.material.design.GwtMaterialBasicWithJQuery" />
|
||||
<!-- <inherits name="gwt.material.design.addins.GwtMaterialAddins" /> -->
|
||||
<inherits name="gwt.material.design.GwtMaterialBasicWithJQuery" />
|
||||
<inherits name="gwt.material.design.addins.GwtMaterialAddins" />
|
||||
<inherits name="gwt.material.design.themes.ThemeBlue" />
|
||||
<inherits name="gwt.material.design.GwtMaterialTable" />
|
||||
|
||||
<!-- Other module inherits -->
|
||||
|
|
|
@ -5,14 +5,17 @@ import java.util.List;
|
|||
|
||||
import org.gcube.portlets.widgets.ckancontentmoderator.client.material.table.CustomizedView;
|
||||
import org.gcube.portlets.widgets.ckancontentmoderator.client.material.table.DataGenerator;
|
||||
import org.gcube.portlets.widgets.ckancontentmoderator.client.resources.DataTableClientBundle;
|
||||
|
||||
import com.google.gwt.core.client.EntryPoint;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.StyleInjector;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.RootPanel;
|
||||
|
||||
import gwt.material.design.client.ui.table.MaterialDataTable;
|
||||
|
||||
|
||||
/**
|
||||
* Entry point classes define <code>onModuleLoad()</code>.
|
||||
*/
|
||||
|
@ -33,6 +36,7 @@ public class CkanContentModeratorWidget implements EntryPoint {
|
|||
* This is the entry point method.
|
||||
*/
|
||||
public void onModuleLoad() {
|
||||
StyleInjector.inject(DataTableClientBundle.INSTANCE.dataTable().getText());
|
||||
|
||||
// MaterialDataTable<String> table = new MaterialDataTable<String>();
|
||||
// table.getTableTitle().setText("Customers");
|
||||
|
|
|
@ -57,7 +57,6 @@ public class CustomizedView extends Composite {
|
|||
}
|
||||
});
|
||||
table.setWaves(null);
|
||||
table.setWidth("500px");
|
||||
table.setUseStickyHeader(false);
|
||||
//table.getScaffolding().getToolPanel().add(icon);
|
||||
|
||||
|
@ -119,6 +118,10 @@ public class CustomizedView extends Composite {
|
|||
public String getValue(User object) {
|
||||
return object.getCity();
|
||||
}
|
||||
@Override
|
||||
public boolean sortable() {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
table.addRowSelectHandler(new RowSelectHandler<User>() {
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
package org.gcube.portlets.widgets.ckancontentmoderator.client.resources;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.resources.client.ClientBundle;
|
||||
import com.google.gwt.resources.client.TextResource;
|
||||
|
||||
/**
|
||||
* Client Bundle for Icon Morph component
|
||||
* @author kevzlou7979
|
||||
*/
|
||||
public interface DataTableClientBundle extends ClientBundle {
|
||||
|
||||
DataTableClientBundle INSTANCE = GWT.create(DataTableClientBundle.class);
|
||||
|
||||
@Source("css/data-table.css")
|
||||
TextResource dataTable();
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
.table-container {
|
||||
width: 90% !important;
|
||||
/*width: 700px;*/
|
||||
margin: auto !important;
|
||||
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
|
||||
}
|
||||
.active-header {
|
||||
background-color: #e1f5fe !important;
|
||||
color: #2196F3 !important;
|
||||
border-bottom: none !important;
|
||||
}
|
|
@ -3,16 +3,11 @@
|
|||
<!-- Inherit the core Web Toolkit stuff. -->
|
||||
<inherits name='com.google.gwt.user.User' />
|
||||
|
||||
<!-- Inherit the default GWT style sheet. You can change -->
|
||||
<!-- the theme of your GWT application by uncommenting -->
|
||||
<!-- any one of the following lines. -->
|
||||
<inherits name='com.google.gwt.user.theme.standard.Standard' />
|
||||
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
<inherits name="gwt.material.design.jquery.JQuery" />
|
||||
|
||||
<inherits
|
||||
name="gwt.material.design.GwtMaterialBasicWithJQuery" />
|
||||
<!-- <inherits name="gwt.material.design.addins.GwtMaterialAddins" /> -->
|
||||
<inherits name="gwt.material.design.GwtMaterialBasicWithJQuery" />
|
||||
<inherits name="gwt.material.design.addins.GwtMaterialAddins" />
|
||||
<inherits name="gwt.material.design.themes.ThemeBlue" />
|
||||
<inherits name="gwt.material.design.GwtMaterialTable" />
|
||||
|
||||
<!-- Other module inherits -->
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
sendButton = Envoyer
|
||||
nameField = Entrez votre nom
|
|
@ -15,8 +15,6 @@
|
|||
<link type="text/css" rel="stylesheet"
|
||||
href="CkanContentModeratorWidget.css">
|
||||
|
||||
<script type="text/javascript" src="js/jquery.min.js"></script>
|
||||
|
||||
<!-- -->
|
||||
<!-- Any title is fine -->
|
||||
<!-- -->
|
||||
|
|
Loading…
Reference in New Issue