gwt

GWT - Can't Finding entry point classes

喜你入骨 提交于 2020-01-01 11:51:37
问题 I have recently started developing another GWT module. So I created a package with all my new classes and one specific class that implements a new entrypoint. I modified in my gwt.xml to my new entrypoint. When I compile, I get the following error: GWT Compiling client-side code. WARNING: 'com.google.gwt.dev.GWTCompiler' is deprecated and will be removed in a future release. Use 'com.google.gwt.dev.Compiler' instead. (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.)

GWT - Can't Finding entry point classes

大城市里の小女人 提交于 2020-01-01 11:51:26
问题 I have recently started developing another GWT module. So I created a package with all my new classes and one specific class that implements a new entrypoint. I modified in my gwt.xml to my new entrypoint. When I compile, I get the following error: GWT Compiling client-side code. WARNING: 'com.google.gwt.dev.GWTCompiler' is deprecated and will be removed in a future release. Use 'com.google.gwt.dev.Compiler' instead. (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.)

Encode String with UTF-8 in GWT

旧巷老猫 提交于 2020-01-01 11:02:10
问题 Is there a way to encode a String with UTF-8 in GWT? In other words, is there a GWT-compatible equivalent to java.net.URLEncoder.encode(toEncode, "UTF-8")? 回答1: Yes, it's com.google.gwt.http.client.Url.encode(), JavaDoc: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/http/client/URL.html 来源: https://stackoverflow.com/questions/1139698/encode-string-with-utf-8-in-gwt

How to setcursor position in GWT RichTextArea

笑着哭i 提交于 2020-01-01 10:16:15
问题 Is there a way to set the cusror position in GWT RichTextArea. There is method setCusrorPosition() to do so in TextArea, but not in RichTextArea. Perhaps there is a native JavaScript (called from GWT) that could set the cursor position in the RichTextArea? 回答1: You are right RichTextArea is not providing the setSelectionRange method, but i have created one using the JSNI. Below is the method, public native void setSelectionRange(Element elem, int pos, int length) /*-{ try { var selection =

How to prefetch image in GWT?

时光毁灭记忆、已成空白 提交于 2020-01-01 08:58:08
问题 I tried the following code: RootPanel root = RootPanel.get("root"); root.clear(); final FlowPanel p = new FlowPanel(); root.add(p); for (int i=0; i<20; ++i) { String url = "/thumb/"+i; final Image img = new Image(url); img.addLoadHandler(new LoadHandler() { @Override public void onLoad(LoadEvent event) { p.add(img); } }); Image.prefetch(url); But it does not work for me. Did I missed something? 回答1: Image load handler is called only in the case, when image is attached to the DOM. So you have

How to hide column in Cell table GWT?

青春壹個敷衍的年華 提交于 2020-01-01 08:47:15
问题 I am using Cell Table in GWT.In that cell table I am adding these columns. TextColumn<Document> idColumn = new TextColumn<Document>() { @Override public String getValue(Document object) { return Long.toString(object.getId()); } }; TextColumn<Document> refColumn = new TextColumn<Document>() { @Override public String getValue(Document object) { return object.getReferenceNumber(); } }; /* * DateCell dateCell = new DateCell(); Column<Contact, Date> dateColumn * = new Column<Contact, Date>

Java database abstraction for GWT (or: Is Hibernate a good choice?)

£可爱£侵袭症+ 提交于 2020-01-01 06:57:06
问题 we are currently developing some kind of enterprise resource managment system with Google Web Toolkit. Our main goals are to keep our system extend able, modular and our costs low. We choose PostgreSQL as our database, because Oracle and MySQL are just too expensive. However we have most experience with Oracle. We also need some kind of replication for our database. The Server backend will be written in Java. We are now looking for a good database abstraction. We were thinking of Hibernate,

Shorten long text according to width in pixels

别说谁变了你拦得住时间么 提交于 2020-01-01 06:56:30
问题 I would like to shorten very long descriptions to the available table column width. I have the column width information in pixels. Now I would like to convert this measure to the number of characters, so I can shorten the text to the specified number. I doesn't have to be 100% correct, a near assumption will also work. 回答1: Wrap your text in the cell in a DIV. This will tell you whether the text inside the DIV is larger than the cell: <div id='test' style='width:200px;height:100px;overflow

Build tree table with GWT CellTableBuilder

末鹿安然 提交于 2020-01-01 06:36:25
问题 Is it possible to build a tree table like this with the new CellTableBuilder of "vanilla" GWT ? The GWT Showcase example only allows to expand the "top level" rows. My use case requires expansion of multiple row levels. How can I achieve this with pure GWT ? 来源: https://stackoverflow.com/questions/16584386/build-tree-table-with-gwt-celltablebuilder

Build tree table with GWT CellTableBuilder

吃可爱长大的小学妹 提交于 2020-01-01 06:35:39
问题 Is it possible to build a tree table like this with the new CellTableBuilder of "vanilla" GWT ? The GWT Showcase example only allows to expand the "top level" rows. My use case requires expansion of multiple row levels. How can I achieve this with pure GWT ? 来源: https://stackoverflow.com/questions/16584386/build-tree-table-with-gwt-celltablebuilder