com.google.gwt.resources.client.CssResource Java Examples
The following examples show how to use
com.google.gwt.resources.client.CssResource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FakeClientBundleProvider.java From gwtmockito with Apache License 2.0 | 6 votes |
/** * Returns a new instance of the given type that implements methods as * described in the class description. * * @param type interface to be implemented by the returned type. */ @Override public ClientBundle getFake(Class<?> type) { return (ClientBundle) Proxy.newProxyInstance( FakeClientBundleProvider.class.getClassLoader(), new Class<?>[] {type}, new InvocationHandler() { @Override public Object invoke(Object proxy, Method method, Object[] args) throws Exception { Class<?> returnType = method.getReturnType(); if (CssResource.class.isAssignableFrom(returnType)) { return GWT.create(returnType); } else { return createFakeResource(returnType, method.getName()); } } }); }
Example #2
Source File: UiBuilderTestHelper.java From swellrt with Apache License 2.0 | 5 votes |
/** @return a mock CSS resouces */ public static <T extends CssResource> T mockCss(Class<T> cssClass) { return Mockito.mock(cssClass, Mockito.withSettings().defaultAnswer( // \u2620 new Answer<String>() { int i; @Override public String answer(InvocationOnMock invocation) throws Throwable { return "asdf" + i++; } })); }
Example #3
Source File: UiBuilderTestHelper.java From incubator-retired-wave with Apache License 2.0 | 5 votes |
/** @return a mock CSS resouces */ public static <T extends CssResource> T mockCss(Class<T> cssClass) { return Mockito.mock(cssClass, Mockito.withSettings().defaultAnswer( // \u2620 new Answer<String>() { int i; @Override public String answer(InvocationOnMock invocation) throws Throwable { return "asdf" + i++; } })); }
Example #4
Source File: EditorImpl.java From swellrt with Apache License 2.0 | 4 votes |
/** Css resource */ // TODO(danilatos): extends CssResource to get obfuscated class name // TODO(danilatos): factor our CSS into per-widget bundles (e.g., image thumbnail, paragraph) @Source("Editor.css") @NotStrict // TODO(danilatos): make Strict by including all classes in the CssResource CssResource css();
Example #5
Source File: EditorImpl.java From incubator-retired-wave with Apache License 2.0 | 4 votes |
/** Css resource */ // TODO(danilatos): extends CssResource to get obfuscated class name // TODO(danilatos): factor our CSS into per-widget bundles (e.g., image thumbnail, paragraph) @Source("Editor.css") @NotStrict // TODO(danilatos): make Strict by including all classes in the CssResource CssResource css();
Example #6
Source File: FullCalendarClientBundle.java From gwtbootstrap3-extras with Apache License 2.0 | 4 votes |
@Source("resource/css/fullcalendar-2.3.1.cache.css") @CssResource.NotStrict CssResource fullCalendarCss();
Example #7
Source File: FullCalendarClientBundle.java From gwtbootstrap3-extras with Apache License 2.0 | 4 votes |
@Source("resource/css/fullcalendar-2.3.1.cache.print.css") @CssResource.NotStrict CssResource fullCalendarPrintCss();
Example #8
Source File: ConsoleResources.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@CssResource.NotStrict @Source("org/jboss/as/console/public/console.css") CssResource css();
Example #9
Source File: ConsoleResources.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@CssResource.NotStrict @Source("org/jboss/as/console/public/community.css") CssResource communityStyles();
Example #10
Source File: ConsoleResources.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@CssResource.NotStrict @Source("org/jboss/as/console/public/animate.css") CssResource animateCss();
Example #11
Source File: ConsoleResources.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@CssResource.NotStrict @Source("org/jboss/as/console/public/product.css") CssResource productStyles();
Example #12
Source File: ConsoleResources.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@CssResource.NotStrict @Source("org/jboss/as/console/public/prettyprint/prettify.css") CssResource prettifyCss();
Example #13
Source File: ConsoleResources.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@CssResource.NotStrict @Source("org/jboss/as/console/public/verticaltabs.css") CssResource verticalTabPanelStyles();