smartgwt

Communication client-server-client

我是研究僧i 提交于 2020-02-05 13:50:18
问题 I have a question about the Communication between a client and a server. I would like to create a GWT application that can do the following: The client A fires an event to the server and the server in his turn fire an event to the client B. Here the client B has to be able to listen to the event all the time. I wanted to send some event with few data in real time to a connected client B. is that possible? and if yes how can I do that? Thanks 回答1: Here the client B has to be able to listen to

ListGrid.setEditorCustomizer in SmartGWT [duplicate]

孤者浪人 提交于 2020-02-01 07:57:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Smartgwt selectitem key value issue I'm using setEditorCustomizer to set custom editors for some fields in a ListGrid, my specific problem is on a SelectItem Something like this: grid.setEditorCustomizer(new ListGridEditorCustomizer() { public FormItem getEditor(ListGridEditorContext context) { SelectItem selectItem = new SelectItem(); LinkedHashMap<String, String> valuesMap = new LinkedHashMap<String, String>()

How to handle right mouse click on the specific Event in SmartGWT Calendar?

巧了我就是萌 提交于 2020-01-25 12:42:36
问题 I want to create a context-menu under a right click for every Event in SmartGWT Calendar or simply handle right-click on event to display a pop-up window. calendar.addEventClickHandler(new EventClickHandler() { @Override public void onEventClick(TimetableEventClick event) { // TODO Auto-generated method stub } }); Code above don't let me to differ actions depending on left/right mouse was clicked. There is a handler I can add to calendar instance: calendar.addRightMouseDownHandler(new

How to handle right mouse click on the specific Event in SmartGWT Calendar?

帅比萌擦擦* 提交于 2020-01-25 12:41:52
问题 I want to create a context-menu under a right click for every Event in SmartGWT Calendar or simply handle right-click on event to display a pop-up window. calendar.addEventClickHandler(new EventClickHandler() { @Override public void onEventClick(TimetableEventClick event) { // TODO Auto-generated method stub } }); Code above don't let me to differ actions depending on left/right mouse was clicked. There is a handler I can add to calendar instance: calendar.addRightMouseDownHandler(new

How to apply different styles to TreeNode for different States?

会有一股神秘感。 提交于 2020-01-16 19:21:09
问题 I'm working on Java, SmartGWT 2.5 & Mozilla FF 3.6.x. I'm using Tree , TreeGrid & TreeNode in my application. My question is: I want to apply different styles to a TreeNode for 3 different States of the TreeNode . The States are: Enabled, Selected, Over(Mouse Hover). How can I achieve this? Thanks in advance. 回答1: Override getBaseStyle() or getCellCSSText(). There's an example of each here: http://www.smartclient.com/smartgwt/showcase/#grid_appearance_hilite_add http://www.smartclient.com

Is smartclient suitable?

为君一笑 提交于 2020-01-11 12:44:17
问题 How does the waiting time for SmartClient scale across thousands of users editing grids? I have received warnings before that ExtJS would not be suitable. 回答1: SmartClient has a single grid component that does both horizontal and vertical incremental rendering, so it handles a very very large number of both rows (several million) and columns (several hundred) without degradation in performance. All of the grid features supported by SmartClient - inline editing, grouping, filtering, dynamic

Equivalent of Line Separator in smartGWT?

家住魔仙堡 提交于 2020-01-11 10:23:10
问题 Is there an equivalent or alternate for System.getProperty("line.separator"); It gives the below error The method getProperty(String, String) in the type System is not applicable for the arguments (String) 回答1: I think you need to execute System.getProperty("line.separator") in your server side code and access it using RPC or any other server side gwt communication technique. Check GWT JRE Emulation: GWT includes a library that emulates a subset of the Java runtime library. The list below

Equivalent of Line Separator in smartGWT?

此生再无相见时 提交于 2020-01-11 10:22:29
问题 Is there an equivalent or alternate for System.getProperty("line.separator"); It gives the below error The method getProperty(String, String) in the type System is not applicable for the arguments (String) 回答1: I think you need to execute System.getProperty("line.separator") in your server side code and access it using RPC or any other server side gwt communication technique. Check GWT JRE Emulation: GWT includes a library that emulates a subset of the Java runtime library. The list below

SmartClient: How to use modal window

天涯浪子 提交于 2020-01-06 08:42:04
问题 I want to develop an application in SmartClient using javascript. In that application, it takes inputs like price range and category. On form submit, without reloading the page it will send request to server and will get the list of items.few of them will be displayed after submit(on step 2) and other will be displayed on 3rd step. And there will be a database query fired after step-2 and step-3 Structure to display items details contains item_pic, Item_name, item_price and availability. How

SmartClient: How to use modal window

帅比萌擦擦* 提交于 2020-01-06 08:41:09
问题 I want to develop an application in SmartClient using javascript. In that application, it takes inputs like price range and category. On form submit, without reloading the page it will send request to server and will get the list of items.few of them will be displayed after submit(on step 2) and other will be displayed on 3rd step. And there will be a database query fired after step-2 and step-3 Structure to display items details contains item_pic, Item_name, item_price and availability. How