MaterialButton myButton1 = new MaterialButton();
myButton1.setTextColor("white");
myButton1.setText("myButton1");
myButton1.setType(ButtonType.RAISED);
myButton1.setWaves(WavesType.DEFAULT);
RootPanel.get("divContainer").add(myButton1);
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:m="urn:import:gwt.material.design.client.ui">
<m:MaterialButton text="myButton2" waves="DEFAULT" backgroundColor="white" textColor="black"/>
</ui:UiBinder>package com.google.gwt.sample.testGwtMaterial.client;
import com.google.gwt.core.client.GWT;import com.google.gwt.uibinder.client.UiBinder;import com.google.gwt.user.client.ui.Composite;import com.google.gwt.user.client.ui.Widget;
public class myButton2 extends Composite {
interface MyUiBinder extends UiBinder<Widget, HelloWorld> { }
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
public myButton2() {
}
}myButton2 fooBtn = new myButton2();RootPanel.get("divContainer").add(fooBtn);public class myButton2 extends Composite {
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
@UiTemplate("myButton2.ui.xml") interface MyUiBinder extends UiBinder<Widget, myButton2> { } public myButton2() { initWidget(uiBinder.createAndBindUi(this)); }}RootPanel.get("stockList").add(new HelloWorld());
<m:MaterialButton text="Button" waves="DEFAULT" backgroundColor="white" textColor="black" />Hi Gilberto and thanks for your answer ! ;)
About maven, you're probably right. But at the moment in my enterprise, we are switching direction for our web development (we were on meteor, a javascript framework client and server side), and for all developers and director, maven were most a barrier than a real help. But I'm agree with you, you must be right when we see all gwt dev on maven ! :) But to be honest, we will try to learn gwt and his environment before trying maven with.
Glad your problems are solved!
By the way, out of curiosity, can you share your experience a little bit about the transition from meteor to GWT? What aspects of GWT made you and your team to choose it? I'd like to hear from you because I have a similar scenario in one company.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Oups... This topic is really gone ! :)