clientbundle

ImageResource in ClientBundle as real <img> element

蓝咒 提交于 2020-01-16 04:50:13
问题 The IE9 does not print background images per default. Is there an option to tell ClientBundle, that all images should be real elements not fake css-background images? 回答1: It depends how the ClientBundle is generated, and how the image is constructed from the ImageResource . By default, ClientBundle s' ImageResource s are generated as data: URLs for all browsers but IE6 and IE7, which will use sprited images just like an ImageBundle . In IE8 and IE9 though, you have to make sure the

How to ClientBundle in GWT?

冷暖自知 提交于 2019-12-20 11:30:05
问题 I am using GWT ClientBundle for the first time. I wrote interface that extends it and here is the code: package edu.etf.fuzzy.client.login; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; public interface Resources extends ClientBundle { @Source("logo_federacija.jpg") ImageResource logo(); @Source("shim.gif") ImageResource shim(); } My question is: How do I tell where exactly these resources (images in this case) can be found. Should

How to ClientBundle in GWT?

房东的猫 提交于 2019-12-20 11:29:03
问题 I am using GWT ClientBundle for the first time. I wrote interface that extends it and here is the code: package edu.etf.fuzzy.client.login; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; public interface Resources extends ClientBundle { @Source("logo_federacija.jpg") ImageResource logo(); @Source("shim.gif") ImageResource shim(); } My question is: How do I tell where exactly these resources (images in this case) can be found. Should

How can I use the same @def in multiple CssResource css files?

一世执手 提交于 2019-12-19 10:49:23
问题 I'd like to say, in a single, centralized location, @def mainColor = #f00; and then, in all of my other css files, refer to mainColor without having to redefine it. Then when I change mainColor in once place, my entire app changes color. The best way I can think of so far is to include two @Source files for every CssResource declaration and always include the global def file. Are there any other ways? 回答1: As far as I know, this is your only option: style.css @def mainColor #f00; *.ui.xml <ui

In GWT 2.0 CssResource, how I can turn off obfuscation for all my css classes?

青春壹個敷衍的年華 提交于 2019-12-09 07:48:42
问题 I have a CssResource where I want to have some of the css classes "mapped" to methods: @ClassName("top-table") String topTable(); But I want to turn off the obfuscation GWT does (while developing at least, for better debugging in firebug, etc). Is there an easy way to achieve this? I know I can use @external in my css file but then I have to define all my css classes like @external .c1, .c2, .c3, etc... Something like @external .* would solve my problem but that doesn't seem to be available

GWT UiBinder and Image Sprites

老子叫甜甜 提交于 2019-12-07 14:06:07
问题 I'm having trouble getting CSS image sprites to appear in GWT UiBinder. I did review how do i use image sprites in GWT?, but found I was already doing what was suggested. I have a ui.xml , ClientBundle interface with a CssBundle nested interface, and a css file. ui.xml: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:with field="resources" type="edu.wts

GWT UiBinder and Image Sprites

不羁的心 提交于 2019-12-05 18:39:02
I'm having trouble getting CSS image sprites to appear in GWT UiBinder. I did review how do i use image sprites in GWT? , but found I was already doing what was suggested. I have a ui.xml , ClientBundle interface with a CssBundle nested interface, and a css file. ui.xml: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:with field="resources" type="edu.wts.upholdingthetruth.poweroftheword.client.resources.POWResources" /> <g:FlowPanel width="100%" styleName="

In GWT 2.0 CssResource, how I can turn off obfuscation for all my css classes?

心已入冬 提交于 2019-12-03 10:47:01
I have a CssResource where I want to have some of the css classes "mapped" to methods: @ClassName("top-table") String topTable(); But I want to turn off the obfuscation GWT does (while developing at least, for better debugging in firebug, etc). Is there an easy way to achieve this? I know I can use @external in my css file but then I have to define all my css classes like @external .c1, .c2, .c3, etc... Something like @external .* would solve my problem but that doesn't seem to be available at least in gwt 2.0.x My current solution is to use: <set-configuration-property name="CssResource.style

How can I use the same @def in multiple CssResource css files?

 ̄綄美尐妖づ 提交于 2019-12-01 11:24:40
I'd like to say, in a single, centralized location, @def mainColor = #f00; and then, in all of my other css files, refer to mainColor without having to redefine it. Then when I change mainColor in once place, my entire app changes color. The best way I can think of so far is to include two @Source files for every CssResource declaration and always include the global def file. Are there any other ways? As far as I know, this is your only option: style.css @def mainColor #f00; *.ui.xml <ui:style src="../../../styles/style.css"> .widget{ color: mainColor; } </ui:style> The downside to this is the