gxt

GXT EditorGrid: choose cell editor type on a cell by cell basis

心不动则不痛 提交于 2019-12-06 14:31:05
问题 GXT EditorGrid provide a mechanism to set a type of editor for a column. Is there anyway to define the editor type on a cell by cell basis? For the curious minds: I need to create a transposed table; the column become the row and the row is the column. That being the case, a column (from a normal table point of view) will have various editor type, whereby a row will have identical editor type. 回答1: basically, you have to handle the BeforeEdit event and set the editor. Here is a base class

How must one use a ListEditor as a child of another Editor?

a 夏天 提交于 2019-12-06 14:23:51
I am using GWT 2.5.0 My intent was to create an editor hierarchy which binds to a ParentBean object. The ParentBean contains a List<Group> , and the Group bean has a List<ChildBean> and List<Group> . From the Editor tutorials I have found, it seemed simple enough to create an editor which contains a ListEditor as one of its sub-editors. But the parent editor never seems to properly initialize the sub ListEditor. Here is an explanation of how I attempted to do this. From the code below, I created a ParentBeanEditor which is composed of one other editor, GroupListEditor . The GroupListEditor

GWT/GXT tag editor?

微笑、不失礼 提交于 2019-12-06 11:32:26
I'm looking for a GWT (or GXT) based tag editor control similar to http://tagedit.webwork-albrecht.de or http://levycarneiro.com/projects/tag-it/example.html or even the StackOverflow tag editor (on the edit page). I couldn't find anything searching for such terms in Google, I was wondering if anyone had ever come across one, perhaps known by a different description or name. Thanks in advance! Chris Boesing I did something similar to that just not for tags but for recipients for messages just like facebook. Check out this question How to build a Facebook-style input box in GWT to get the

GXT -coloring entire grid row according to one cell in row

北城余情 提交于 2019-12-05 19:37:38
. . I colored one column according to the value of cell but i want to color the entire row (means the cell contained row ) in gxt grid help me here is my code for coloring the cell (i want to color the row instead of the cell) /*------------Coloring Area------------*/ GridCellRenderer<BeanModelType> ColoredGrid = new GridCellRenderer<BeanModelType>() { @Override public Object render(BeanModelType model, String property, ColumnData config, int rowIndex, int colIndex, ListStore<BeanModelType> store, Grid<BeanModelType> grid) { String valueOfCell = model.get(property); String style = valueOfCell

Rows are not aligned properly under the Column headers in EditorGrid in GXt 2.2.3

独自空忆成欢 提交于 2019-12-05 19:31:16
I Created an EditorGrid using GXT 2.2.3.Now the problem is rows are not aligned properly under the column header,they are slightly move to left side. Please suggest how to resolve this. I solved this by setting the padding and width of each column as below: actioncolumn.setStyle("width:100%;"); actioncolumn.setStyle("padding-right:3px;"); We've had problems with column header alignment before... If you are re-initializing your grid with reconfiure() calls, make sure the widget is attached to DOM. If widget is not attached, column width calculations won't be correct. I realized this while

Gxt focus management

佐手、 提交于 2019-12-05 09:16:42
I am working with Gxt. I need to set focus to the first enabled field on the page. But I have a lot of pages and I want to centralize that behaviour. There is a lack of documentation in Gxt so I wonder if somebody has met such a problem and can help me. Now it goes like that in each component's class protected void resetFocus() { combobox.focus(); } @Override public void show() { super.show(); resetFocus(); } I have found com.extjs.gxt.ui.client.aria.FocusManager but is absolutely unclear how can I use it. Or maybe It is also possible to get chain of fields as they go on the component

GXT EditorGrid: choose cell editor type on a cell by cell basis

本秂侑毒 提交于 2019-12-04 20:23:23
GXT EditorGrid provide a mechanism to set a type of editor for a column. Is there anyway to define the editor type on a cell by cell basis? For the curious minds: I need to create a transposed table; the column become the row and the row is the column. That being the case, a column (from a normal table point of view) will have various editor type, whereby a row will have identical editor type. basically, you have to handle the BeforeEdit event and set the editor. Here is a base class from which you can implement your grid: public abstract class AnyEditorGrid<T extends ModelData> extends

Ext GWT (GXT) tooltip over a grid row

耗尽温柔 提交于 2019-12-04 10:15:00
I'm developing a custom tooltip using Ext GWT (GXT) for a project of mine, and this tooltip has to appear over Grid rows when they're selected. I can't use the default GXT tooltip or quicktip because I need be able to add Components (like buttons) to this tooltip. The problem is that the GXT Grid component doesn't expose a event related to mousing over a row (although there's RowClick and RowMouseDown). I tried adding a listener to the Grid with the OnMouseOver and OnMouseOut events anyway, but it doesn't work as expected. It fires these events up whenever you mouse over any of the divs and

GWT or not for enterprise apps

独自空忆成欢 提交于 2019-12-04 08:12:55
问题 I am working on an tool to create enterprise level applications on app-engine. This needs to be cross browser (also including IE8), works on mobile, and at a later point of time also supports desktop clients through (Qt4/GTK/etc) The problem that I consistently face is this: For my web-application - should I use GWT(GoogleWebToolkit) or not? I am pretty good at using "EXT-JS", but its not a choice due to its open-source policy. There is another framework "SmartClient" which has a better

ExtJS vs ExtGWT - Are they functionally equal?

旧时模样 提交于 2019-12-04 04:31:33
问题 Assuming a person has same level of expertise in JS and Java, Should he choose ExtJS or ExtGWT for a new project with Java / Spring server side backend, 1.Are they functionally equal?. All the widgets available in ExtJS are available in ExtGWT? 2.Or new widgets available in the ExtJS and they will be ported ExtGWT in next releases?. I see that ExtJS 4 is coming. But ExtGWT is 3 only. I could not find any comprehensive comparison between ExtJS and ExtGWT 回答1: I have seen ExtGWT releases