Amit Shrestha

GWT

Some commands regarding GWT

* Project creation: -> projectCreator -eclipse CRDPro
* application creation: ->ApplicationCreator -eclipse CRDPro com.bikalpa.client .EntryPointClassName
* Creating an “Image” instance, and providing it an Id [ie: RootPanel?.get(“id”).add(image);], and not using it in HTML page result in exception

Making scroll panel always to scroll down [like scroll panels behave in a chatting window , it always display the bottom item]

* ScrollPanel? scrollPanel=new ScrollPanel?();
* VerticalPanel? vp=new VerticalPanel?();
* scrollPanel.add(vp);
* //add some thing in vp
* scrollPanel.setScrollPosition(vp.getOffsetHeight());

— AmitShrestha – 10 Dec 2008

Creating the maven project out of GWT projects:

* creatingGwtMavenPro.txt: This file contains the details (in order) to configure the task

– after everything configured if you want your project be jetty intregated, add the plugin to your pom.xml and run the command; -> mvn jetty:run -exploded

— RamKrishnaWagle – 19 Dec 2007

Getting browser name
public static native String getBrowserName() /*-{ var browser = “”; if(navigator.userAgent.indexOf(“Firefox”)!=-1) browser = “Firefox”; else if(navigator.userAgent.indexOf(“MSIE”)!=-1) browser = “Microsoft Internet Explorer”; else if(navigator.userAgent.indexOf(“Opera”)!=-1) browser = “Opera”; else if(navigator.userAgent.indexOf(“Safari”)!=-1){ browser=”Safari”; } return browser; }-*/;

— AmitShrestha – 28 Mar 2008

1 Response to "GWT"

thanks Amit for GWT Article.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: