-
-
Save jasonlemay/7e7da99c7b6bfb022b3b to your computer and use it in GitHub Desktop.
Getting started with CSS (GSS) in GWT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/main/java/com/company/project/client/resources/pages/ContactResources.java | |
package com.company.project.client.resources.pages; | |
import com.google.gwt.resources.client.ClientBundle; | |
import com.google.gwt.resources.client.CssResource; | |
import com.google.gwt.resources.client.ImageResource; | |
// ^ don't forget to import the ImageResource package | |
public interface ContactResources extends ClientBundle { | |
interface Style extends CssResource { | |
String contact(); | |
String contact_form(); | |
} | |
@Source("images/contact/background.jpg") | |
ImageResource background(); | |
@Source("com/company/project/client/resources/css/pages/contact.gss") | |
Style style(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment