gxt

How to customize the CSS of a theme generated with the ThemeBuilder?

。_饼干妹妹 提交于 2019-12-11 08:35:36
问题 I have used the ThemeBuilder to create a theme, but now I need to add an attribute in a CSS class so I can have a different font color in the selected element of a ListView, for example. Ideally I would expect that the builder have support for specifying such a configuration in the .theme file, specially because font color is something that will not affect the image generation process that is used to support older browsers. In fact the builder should have support for all standard CSS3

GXT Grid row is not selectable

江枫思渺然 提交于 2019-12-11 06:28:51
问题 I'm new to GWT. I've a grid which has simple data mapped from a BaseModel. When the user selects a row, it is supposed to be selected. I've checked a few examples and post, it seems that we are doing it correctly. Code below to create the grid. Could you please mention the senarios in which this selection will be blocked? List<BaseModel> gridData= new ArrayList<BaseModel>(); List<ColumnConfig> config = new ArrayList<ColumnConfig>(); config.add(new ColumnConfig("isPrimary","Primary",70));

CSS is not working in GXT

你。 提交于 2019-12-11 05:04:16
问题 I am in learning phase of GWT GXT, I my project some of the css are working fine , but some are showing me a strange behavior . for login button. logonBtn = new TextButton("Connect"); logonBtn.setIconAlign(IconAlign.RIGHT); logonBtn.setIcon(Resources.INSTANCE.login()); logonBtn.setStyleName("Project-Button"); Css .Project-Button { color: Black; border: thin outset #FF6600; font-family: Courier New, Century Gothic, Times New Roman, Verdana, Arial; vertical-align: middle; background-position:

GWT 2.5.1 and IntelliJ debug mode, serializable exception

我是研究僧i 提交于 2019-12-11 04:03:44
问题 I am running IntelliJ 12.1 for a GWT project. I cannot get the GWT configuration to work, I keep getting a serializable exception. I am also using maven and tomcat and running the web app project from maven. E.g. I build the project/webapp to the target directory and run tomcat from that directory. Error: java.lang.RuntimeException: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The response could not be deserialized Here are my settings for the GWT configuration:

How to use EXT-GWT ComboBox

你离开我真会死。 提交于 2019-12-11 03:38:05
问题 How do I use ComboBox in EXT-GWT with static data. For example I just want to hard code (for demo purposes) list of First Names and display it to the user. I don't want to use any dummy objects that they are using in their samples. Where can I find simple example with Strings? 回答1: Here is the code I use in my project: SimpleComboBox combo = new SimpleComboBox(); combo.add("One"); combo.add("Two"); combo.add("Three"); combo.setSimpleValue("Two"); 回答2: Maksim, I am not sure whether it helps

GXT 2.2 - MessageBox button constants

ぐ巨炮叔叔 提交于 2019-12-11 01:35:42
问题 This is a question on how to detect which button was clicked in the MessageBox/Dialog. GXT 2.1 or 2.2 only. Please do not answer using GXT 3. Ideally, this is how I could do a confirm dialog. final MessageBox box = MessageBox.confirm( "Confirm kill avatar", "Please remove " + getAvatar().getName(), new Listener<MessageBoxEvent>() { @Override public void handleEvent(MessageBoxEvent be) { Button clicked = be.getButtonClicked(); if (clicked == box.getDialog().getButtonById("yes")) deleteAvatar()

Spanish language chars are not displayed properly?

拟墨画扇 提交于 2019-12-11 00:03:50
问题 I am using GWT. i implemented internationalization to support spanish language. but spanish chars are not displayed propertly. Ex: Teléfono Buscar is displayed as . (see some junk char after Tel). i am using IE browser. Do i need to configure any further settings? Thanks! 回答1: I suspect this may be due to the fact that your editor isn't using UTF-8 encoding. If you're using Eclipse, you can configure it to use UTF-8 for *.properties by going to Window > Preferences > General > Content Types .

How to reload data rows in GXT grid?

痞子三分冷 提交于 2019-12-10 21:07:44
问题 Assuming that data retrieves from DataStore using RPCproxy, populate to grid using ListStore upon opening the page. Then, there's a form to add an entity and after modification it will reflect the new list in GXT grid with the new added row. How can reload the grid? I tried .reconfigure() method in Grid but didn't work. 回答1: grid.getStore().getLoader().load(); update: First of all you must extract Grid before your Proxy, and the second thing is to change your RPC callback: public class

Ext-GWT / GXT (Not So) Simple Layout Issue?

浪尽此生 提交于 2019-12-10 20:48:12
问题 I have posted this question on the Ext-GWT forums, I am just hoping that someone here might have an answer for me! I am struggling to do something I initially thought was simple but am beginning to believe is impossible... I have got a "layout template" of sorts - simply consisting of a few GWT DockLayoutPanel's within each other and finally ending in LayoutPanels. GWT's LayoutPanel is designed to size the widget (or Composite) that's added to it to its full size and does so perfectly with

How to split a panel in EXT-GWT?

会有一股神秘感。 提交于 2019-12-10 16:27:57
问题 I'm using ext-gwt and can't figure out how to split a panel so that I have 2 widgets, one on each side of the resizeable splitter, with the height of both widgets being 100% and their widths being variable. In essence, what I want is something like: ----------------------------------------- | Widget1 | Widget2 | | | | | | | | | | | | | | <-|-> | | | | | | | | | | | | | ----------------------------------------- I tried it with BorderLayout, but I think I was doing it wrong and it wouldn't work