This is a very basic GXT project with a theme module.
You can generate your own project based on this project using this Maven Archtype.
- Java JDK - (GXT Versions Matrix Reference)
- Apache Maven
- Access to Sencha Maven Artifactory - This will give you access to GXT 4.0.3.
Importing the project into the IDE.
- Run
mvn install
from the project root to build the theme.- The reason this is done to start with is to generate the theme source files which will be in the generated source directory.
- Import this project into your IDE as Maven project.
- Create a launcher in the IDE for the application.
- Eclipse - Right click and debug as GWT Development Mode with Embedded Jetty Server.
- IntellJ IDEA - Create a GWT launcher.
The theme was copied from Triton and renamed as Tritium for example.
Running mvn install
from the root of the project will do a full project build which includes the theme.
Running mvn install
from the theme module, or theme folder, will allow you to only build the theme.
Client bundles are ideal for encapsulating reuseable code. Like we do with Appearances. I like to suggest using gss variables in a global gss file that cascades into all of your client bundles so you only have one place for global values. Check out the Theme Utilities for using the Themebuilder theme values.
Extending the theme allows you full control of the GSS, styles, and widget look and styling.
This video covers extending the GXT appearance, and providing your own css styling.
- Button Extension From this Repo
- ButtonCellAppearance Extension Example
- Custom Split Button Cell Appearance
This images covers where the theme module stores the themes appearances and associated ClientBundle resources.
- NOTE: The
Triton*
class names in the image have been renamed toTritium*
.
There is more than one to style widgets. Check out some of the tips and tricks for ideas. (Check out the example images at the bottom of the gists.)
- Another way to style a tip. See the gist.
- Another way to style a progress bar. See the gist.
- Custom slider example. See the gist.
- Custom toggle button. See the gist.
- Showing an icon when hovering over header. See the gist.
- Text area resizing. See the gist.
- Custom datepicker. See the gist.
- Combo with multiple checkboxes. See the gist
- Blinking border. See the gist.
- CSS3 marquee animation. See the gist.
- Another way to change the button color for modern browsers only. See the gist.
- Custom tool button using icon. See the gist.
- Another way to style toggle buttons. See the gist.
- Another way to style the tab panel bar. See the gist.
- Custom Split Button. See the gist.
- Another way to style the grid using the ViewConfig. See the gist.
- Another way to style the grid selection (1). See the gist.
- Another way to style the grid selection (2). See the gist.
- Another way to style the grid selection (3). See the gist.
- Another way to show the dirty icon in the grid. See the gist.
- Another way to disable the button in a grid (1). See the gist.
- Another way to disable the button in a grid (2). See the gist.
- Split grid or locking grid example. See the gist.
- Custom row expander button. See the gist.
- Custom filter icon. See the gist.
- Another way to layout cells in a grid. See the gist.
- Another way to layout the tree. See the gist.
- Another way to color headers in a BorderLayoutContainer. See the gist.
- Another way to use HTML layout and css to layout. See the gist.
- Fluid Layout. See the gist.
- Center and scroll container. See the gist.
- Another way to style your error handler. See the gist.
- Font Awesome example with flexible layout. See the gist
- Material icons. See the Explorer Example.
- Web Fonts. See the Explorer Example.
- Extending the appearance. See the gist.
- Hacking the ImageResource. See the gist.
- Embedding your app. See the gist.
- Dropping images on the window (1). See the gist.
- Doprring images on the window (2). See the gist.
- Resize SVG. See the gist