This section show how to use a new skin for your Rialto Application

Create your css, and image dirctory

In your application you must add in your public repository the following folder:

  • rialtoEngine
  • * images
  • * style

Put in the image folder your specific images and in the style folder the css you want to use. The css must be a copy of the original defaultSkin.css where you put your own style.

Add the css link in your *.gwt.xml

This link must be after the rialtoGWT inherits.

<module>
        <!-- Inherit the core Web Toolkit stuff.                  -->
	<inherits name='com.google.gwt.user.User'/>
	<inherits name="fr.improve.rialto.gwt.core.Rialto"/>
	<stylesheet src="rialtoEngine/style/NewRialtoSkin.css"/>
	<!-- Load default skin stylesheet -->
	<!-- Specify the app entry point class.                   -->
	<entry-point class='fr.improve.gwt.client.TestGWT'/>
</module>

Enable the css file in your java code

After you must register and activate this css add in the moduleLoad fonction of your entry-point.

public void onModuleLoad() {
	SkinRegistry.registerSkin(null, "NewRialtoSkin");
	SkinRegistry.activateSkin("NewRialtoSkin");
gwt/newskin.txt · Last modified: 2008/08/04 17:12 by cbalit
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0