List of usage examples for com.vaadin.server Constants THEME_DIR_PATH
String THEME_DIR_PATH
To view the source code for com.vaadin.server Constants THEME_DIR_PATH.
Click Source Link
From source file:org.opencms.main.CmsVaadinServletService.java
License:Open Source License
/** * @see com.vaadin.server.VaadinServletService#getThemeResourceAsStream(com.vaadin.ui.UI, java.lang.String, java.lang.String) *///w ww . j a v a2 s. co m @Override public InputStream getThemeResourceAsStream(UI uI, String themeName, String resource) throws IOException { String resourcePath = Constants.THEME_DIR_PATH + '/' + themeName + "/" + resource; InputStream result = getClass().getClassLoader().getResourceAsStream(resourcePath); if (result != null) { return result; } else { return super.getThemeResourceAsStream(uI, themeName, resource); } }