gxt panel scroll with mouse scroll

Stick div to top of page when start scrolling the problem is similar to THIS . It is something like a “Stick div to top of page when start scrolling”. In the above link, a lot of solutions are for jQuery. I need the gxt/gwt way.   gwt/gxt In gwt we have scrollListener which can…

GXT RowLayout

Most of the time I use FitLayout as my panel layout data in GXT. However when it comes to a panel contains many other panels, Fitlayout might not be the best solution. So the RowLayout come into scene. It will like it: centerPanel.add(actionPanel, new RowData(1, -1, new Margins(4))); centerPanel.add(userActionPanel, new RowData(1, 1, new Margins(4)));  …

gxt panel resize

option 1 ViewPort ViewPort will listen to resize event and automatically reset the size. However it seems that view port does not support the scroll very well though it also extends the LayoutContainer. option2 addResizeHandler without adding resizeHandler (I think listener is deprecated), the widgets in regular LayoutContainer do not resize automatically. Therefore we need to add…

resourcebundle in gwt and gxt

GWT will search for the same package for resource. just put the image/css or other resource in the resource folder with the same package route. public interface Resources extends ClientBundle{ @Source(“images/addnew1616.png”) ImageResource add(); } For gxt2, widgets like Button accepts “AbstractImagePrototype”, so we use ClientBundles with ImageResources, we can convert by  using: AbstractImagePrototype.create     For…

set tooltip for disabled button in gwt

In my recent project, I need to set tooltip for disabled button so that user can get the info why this button is disabled and what action to take in order to enable it. As we know the disabled button or menu item in gwt does not sink event, so even if we use setTooltip…

The GWT/GXT rendering process

FROM HERE The project I’m currently working on uses GWT and GXT and so I decided to dig into the frameworks to figure out how the both perform their magic of turning Java components into HTML elements. Since I’ve done the work, I thought I may as well share it incase anybody else is curious!…

GXT’s MVC Framework

The AppEvent class The messages that pass between controllers and views are instances of the AppEvent class. Each AppEvent object has a specific type defined by an EventType object. Optionally, an AppEvent can contain a payload of one or more items of data by using the setData methods. This is useful for passing the state…

GXT Store Loader dataproxy

The Ext-GWT (GXT) library uses a “loader-store” functionality to handle manipulating UI models (or domain objects) and binding them to GXT widgets. The Ext team has posted a simplistic overview document of the “loader-store” mechanism at their Helpcenter. The focus of this blog entry will try to build upon the initial documentation provided by Ext and explain step-by-step…