smartgwt

question about css files for smartgwt project

我与影子孤独终老i 提交于 2019-12-02 13:26:23
问题 I have what should be a simple problem, but so far I'm unable to come up with an answer. I would be very grateful if someone can humor me and just tell me where in the smartgwt jar I can find the stylesheets for changing the default look and feel of a smartgwt project. I know how to inherit the supplied themes such as com.smartclient.theme.simplicity.Simplicity but what I really need is to be able to modify simple things like global font size, style, color etc. Please help... 回答1: Its located

smartgwt button cannot override skin_styles.css

强颜欢笑 提交于 2019-12-02 11:56:36
I want to add red background and white color for titleStyle for ibutton in smartgwt. I cannot override skin_styles.css. How to override skin_styles for button in smartgwt? Simple addStyleName() or setPrimaryStyleName does not work. Have somebody tried it?setBase Style also. Alain BUFERNE It seems you have issues with skinning and style, If you want to add a style to a widget(your previous post) you can use some sort of code: String newStyle; String actualStyle= o.getStyleName(); if(actualStyle!= null){ newStyle= actualStyle+ " " + styleNameYouWant; }else{ newStyle= styleNameYouWant; } o

Is smartclient suitable?

我的梦境 提交于 2019-12-02 10:24:19
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. 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 frozen columns, sorting, reordering fields, drag and drop .. (too long to list) are supported by this single,

How to add button in HeaderSpan of SmartGWT

主宰稳场 提交于 2019-12-02 10:14:51
I want to add a button to the HeaderSpan of ListGrid in SmartGWT. I tried using the 'HeaderSpan.setAttribute((String property, Object value)) method but it did not work. Below is the example I tried with:- ListGrid countryGrid = new ListGrid(); HeaderSpan ident = new HeaderSpan("Identification", new String[]{"countryCode", "countryName"}); ident.setAttribute("control", new Button("Test")); countryGrid.setHeaderSpans(ident); countryGrid.draw(); Please help! Finally I found the way to add button to a HeaderSpan. Below is the code (Have omitted import statements for brevity):- public class

set the values in Listgrid (smartGWT)

雨燕双飞 提交于 2019-12-02 09:33:06
I am trying to use smart Gwt, Listgrid. I am using both com.google.gwt.user.client.ui and smart gwt. I have value in a ListGridRecords[] records. I am unable to set the values in table. this piece of code is in composite. public TableDocument(Action action) { initWidget(getTablePanel()); } private HorizontalPanel getTablePanel() { if (tablePanel == null) { tablePanel = new HorizontalPanel(); tablePanel.setSize("144px", "75px"); addtable(); } public void addtable() { // TODO Auto-generated method stub if(isDocumentPresent()==false){ tablePanel.add(getNoDocumentLabel()); }else{ tablePanel.remove

SmartGWT Dialog title not set correctly

心不动则不痛 提交于 2019-12-02 06:57:43
问题 I have a custom dialog that extends the SmartGWT dialog. My problem is that the title and the close button of the dialog aren't displayed in the dialog's title but in the dialog's content under all other elements. Here is a screeshot: The bold test and the x button should be in the dialog's title. My code basically is: public class MyDialog extends Dialog { public MyDialog() { super(); this.setTitle("test"); this.setShowTitle(true); this.setShowCloseButton(true); this.setShowMaximizeButton

Smart Gwt components are not rendered in html div tag

我只是一个虾纸丫 提交于 2019-12-02 06:30:43
I am using smart GWT to develop my application, to create the structure of the application I am using GWT components. The HTML code snippet is as below: <div class="container"> <div id="pagePanel" ></div> </div> In my pagePanel div all the components are added. As I add components dynamically in the pagePanel div, the pagePanel div does not enlarge as per the size of the added component and the added smart gwt components overflows the pagePanel div. So I need to give css to each and every div of smart gwt. But as the GWT generates HTML structure on its own it is not possible to find all the

question about css files for smartgwt project

﹥>﹥吖頭↗ 提交于 2019-12-02 04:13:23
I have what should be a simple problem, but so far I'm unable to come up with an answer. I would be very grateful if someone can humor me and just tell me where in the smartgwt jar I can find the stylesheets for changing the default look and feel of a smartgwt project. I know how to inherit the supplied themes such as com.smartclient.theme.simplicity.Simplicity but what I really need is to be able to modify simple things like global font size, style, color etc. Please help... Its located in war/[projectname]/skins/[skinName]/skin_styles.css in your apps war folder. EDIT In the Jar, its in com

Tree - drag&drop nodes - refresh?

我只是一个虾纸丫 提交于 2019-12-02 02:21:07
I have a problem related to a smartgwt Tree structure. I'm creating a Tree (called nodesTree ) with values from a DB, and each node has a name set up. For ex I'm having 4 nodes (the numbers are the names of the nodes): 1 2 3 4 for (TreeNode node : nodesTree.getAllNodes()) System.out.print(node.getName()); Output: 1 2 3 4 If I drag node 4 under node 1(at the same level as 2) 1 2 4 3 I want to have the order of nodes: 1 2 4 3 but if I repeat the above "for" statement the output will be the same as above: 1 2 3 4 . TreeGrid.refreshFields() does not work. I'm using smartgwt 2.4. Thank you. Later

SmartGwt DateItem useTextField=true - how to make text entry field UNeditable

天涯浪子 提交于 2019-12-02 01:08:05
问题 Since I can't figure out how to solve my problem presented here I'm thinking for the moment at a temporary solution. I have a smartgwt DateItem widget: DateItem date = new DateItem("Adate"); date.setWidth(120); date.setWrapTitle(false); date.setAttribute("useTextField", true); date.setAttribute("inputFormat", "yyyy/MM/dd"); date.setAttribute("displayFormat", "toJapanShortDate"); Because the attribute useTextField is set to true we can see the text entry field. How can I make this text entry