15 Sep 2008 7:28 AM #1
More ExtGWT themes derived from ExtJS ones
I have wrapped the ExtJS themes created by madrabaz so they can be used also in ExtGWT.
- Black (http://extjs.com/forum/showthread.php?t=15504);
- DarkGray (http://extjs.com/forum/showthread.php?t=15341);
- Olive (http://extjs.com/forum/showthread.php?t=15505);
- Purple (http://extjs.com/forum/showthread.php?t=15377);
- Slickness (http://extjs.com/forum/showthread.php?t=28024);
Insert this to your *.gwt.xml file:
<inherits name='ext.ux.theme.black.Black'/> <inherits name='ext.ux.theme.darkgray.DarkGray'/> <inherits name='ext.ux.theme.purple.Purple'/> <inherits name='ext.ux.theme.olive.Olive'/> <inherits name='ext.ux.theme.slickness.Slickness'/>
Then add this to your ExtGWT Java code:
import ext.ux.theme.black.client.Black; import ext.ux.theme.darkgray.client.DarkGray; import ext.ux.theme.purple.client.Purple; import ext.ux.theme.olive.client.Olive; import ext.ux.theme.slickness.client.Slickness;
ThemeManager.register(Black.BLACK); ThemeManager.register(DarkGray.DARKGRAY); ThemeManager.register(Olive.OLIVE); ThemeManager.register(Purple.PURPLE); ThemeManager.register(Slickness.SLICKNESS);
The attached ZIP files need to be renamed to JAR and then included in your ExtGWT project.
15 Sep 2008 11:12 PM #2
As a beginner I have a question concerning adding a theme to the project. I add the module inherited in the xml file, add the jar to the classpath, register the theme and nothing changes with the display..
I suppose I can be placing register line in the wrong place, I paste the line
Last edited by bjagodzinski; 15 Sep 2008 at 11:47 PM. Reason: misspelling
16 Sep 2008 12:08 AM #3
Ok, I found the solution. For those who might be interested in the future: Registering a theme is not enough, you have to also set the theme, to have it visible. To do this, you can use ThemeSelector combobox, or set the theme as default theme for the app, just by pasting this line into the onModuleLoad method:
16 Sep 2008 6:27 AM #4
Sorry, I forgot to mention that one has to either set the default theme or add a "Theme Selector" list-box GUI somewhere in the configuration section of the GWT application, something like this:
HorizontalPanel configPanel = new HorizontalPanel(); configPanel.setSpacing(10); ContentPanel themesPanel = new ContentPanel(); themesPanel.setHeading("Themes"); themesPanel.setFrame(true); themesPanel.setWidth(150); themesPanel.setLayout(new FillLayout()); themesPanel.add(new ThemeSelector()); configPanel.add(themesPanel); add(configPanel);
Thanks, bjagodzinski, for bringing this to my attention.
18 Sep 2008 10:58 PM #5
The files inside the zips dont have the file extension .jar
Maybe correct that?
18 Sep 2008 11:16 PM #6
no, the files need to be renamed to .jar and then included in your project.
11 Aug 2009 9:36 AM #7
Does they work on GXT 2.0?
If not, what are the changes that need to be made?
11 Aug 2009 11:52 PM #8
For the few test I have done,
They seems to work.
14 Aug 2009 6:07 PM #9
What steps did you followed to configure the same on Intellij8 IDE to make it work?
1) Download the ZIP files for the themes?
2) Rename them to Jar.
3) Place the Jar files in the lib directory of the project.
4) Configure the same in the *.gwt.xml file as below
Is all the above steps correct.
22 Sep 2009 11:05 AM #10
Well, rgalvao, then seem to work fine also with GXT 2.0.Cypher
Thread Participants: 21
- sven (2 Posts)
- gslender (3 Posts)
- jpnet (1 Post)
- zaccret (1 Post)
- georgewang (1 Post)
- Daniel Kurka (2 Posts)
- sdc (3 Posts)
- bjagodzinski (2 Posts)
- xalvaro (1 Post)
- seb2nim (3 Posts)
- jamisonke (1 Post)
- karacutey (1 Post)
- sgolla (1 Post)
- rgalvao (1 Post)
- avsrinivasa (1 Post)
- navi75 (2 Posts)
- valery.stroeder (2 Posts)
- cbonami (2 Posts)
- dev1 (1 Post)
- PeterStrong (2 Posts)
- rcbeuker (1 Post)