com.google.gwt.resources.client.DataResource Java Examples

The following examples show how to use com.google.gwt.resources.client.DataResource. 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: ResourceUrlFunction.java    From gss.gwt with Apache License 2.0 5 votes vote down vote up
public ResourceUrlFunction(ResourceContext context) {
  this.context = context;
  this.dataResourceType = context.getGeneratorContext().getTypeOracle()
          .findType(DataResource.class.getCanonicalName());
  this.imageResourceType = context.getGeneratorContext().getTypeOracle()
          .findType(ImageResource.class.getCanonicalName());
}
 
Example #2
Source File: HelpResources.java    From codenvy with Eclipse Public License 1.0 4 votes vote down vote up
@DataResource.MimeType("text/javascript")
@Source("userVoice.js")
DataResource userVoice();
 
Example #3
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/label_icon_16.png")
DataResource labelIcon16();
 
Example #4
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/label_icon_32.png")
DataResource labelIcon32();
 
Example #5
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/number_icon_32_V1.png")
DataResource numberIcon32V1();
 
Example #6
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/number_icon_32_V2.png")
DataResource numberIcon32V2();
 
Example #7
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/number_icon_32_V3.png")
DataResource numberIcon32V3();
 
Example #8
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/text_icon_16.png")
DataResource textIcon16();
 
Example #9
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/text_icon_32.png")
DataResource textIcon32();
 
Example #10
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/date_icon_16.png")
DataResource dateIcon16();
 
Example #11
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/date_icon_16.png")
DataResource dateIcon32();
 
Example #12
Source File: DataSetClientImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/loading_icon.gif")
DataResource loadingIcon();
 
Example #13
Source File: ImageThumbnailWidget.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
/** loading images are animated GIF images.
 *  DataResource is used instead of ImageResource to prevent conversion to PNG.
 */
@Source("slow_loading.gif")
@ImageOptions(flipRtl = true)
DataResource chromeLoadingSlow();
 
Example #14
Source File: ImageThumbnailWidget.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("slow_loading_fast.gif")
@ImageOptions(flipRtl = true)
DataResource chromeLoadingFast();
 
Example #15
Source File: ImageThumbnailWidget.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("att_loading.gif")
@ImageOptions(flipRtl = true)
DataResource chromeLoadingAttachment();
 
Example #16
Source File: GadgetWidgetUi.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("broken_gadget.png")
DataResource brokenGadget();
 
Example #17
Source File: SuggestionResources.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("icon_undo.png")
DataResource undoIcon();
 
Example #18
Source File: SuggestionResources.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("icon_undo_hover.png")
DataResource hoverUndoIcon();
 
Example #19
Source File: ProgressWidget.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("progress_mini_bar.gif")
DataResource barImage();
 
Example #20
Source File: ProgressWidget.java    From incubator-retired-wave with Apache License 2.0 4 votes vote down vote up
@Source("progress_mini_groove.gif")
DataResource grooveImage();
 
Example #21
Source File: GwtMockitoTest.java    From gwtmockito with Apache License 2.0 4 votes vote down vote up
@Test
public void shouldMockCustomClientBundles() throws Exception {
  SvgClientBundle clientBundle = GWT.create(SvgClientBundle.class);
  assertTrue(clientBundle.icon().transform() instanceof DataResource);
}
 
Example #22
Source File: DashbuilderCommonImages.java    From dashbuilder with Apache License 2.0 4 votes vote down vote up
@Source("images/slider/default/scalev.png")
DataResource scalev();
 
Example #23
Source File: ImageThumbnailWidget.java    From swellrt with Apache License 2.0 4 votes vote down vote up
/** loading images are animated GIF images.
 *  DataResource is used instead of ImageResource to prevent conversion to PNG.
 */
@Source("slow_loading.gif")
@ImageOptions(flipRtl = true)
DataResource chromeLoadingSlow();
 
Example #24
Source File: ImageThumbnailWidget.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("slow_loading_fast.gif")
@ImageOptions(flipRtl = true)
DataResource chromeLoadingFast();
 
Example #25
Source File: ImageThumbnailWidget.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("att_loading.gif")
@ImageOptions(flipRtl = true)
DataResource chromeLoadingAttachment();
 
Example #26
Source File: GadgetWidgetUi.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("broken_gadget.png")
DataResource brokenGadget();
 
Example #27
Source File: SuggestionResources.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("icon_undo.png")
DataResource undoIcon();
 
Example #28
Source File: SuggestionResources.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("icon_undo_hover.png")
DataResource hoverUndoIcon();
 
Example #29
Source File: ProgressWidget.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("progress_mini_bar.gif")
DataResource barImage();
 
Example #30
Source File: ProgressWidget.java    From swellrt with Apache License 2.0 4 votes vote down vote up
@Source("progress_mini_groove.gif")
DataResource grooveImage();