Hi all,
using smartgwtee2.3, I have a set of toolstripbuttons that i disable and enable depending on context.
Icons for all of them work, EXCEPT "edit". When that button is disabled, the image won't show, but an image missing image is displayed in the browser.
These are my inherits:
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwtee.SmartGwtEE"/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlue"/>
<inherits name="com.google.gwt.i18n.I18N"/>
This is how i create the button:
public class CrudToolBarButton extends ImgButton {
private boolean alwaysEnabled;
public CrudToolBarButton(String source, boolean alwaysEnabled) {
this.alwaysEnabled = alwaysEnabled;
setSrc(source);
setSize(16);
setShowFocused(false);
setShowRollOver(false);
setShowDown(false);
}
...
new CrudToolBarButton("[SKIN]actions/edit.png", false);
I took a look in the enterpriseblue skin jar and there was no edit_Disabled.png, like there was for the ones that did work ("add.png", for example)
Can anybody help out and perhaps let me know if i'm doing anything wrong?
thanks
using smartgwtee2.3, I have a set of toolstripbuttons that i disable and enable depending on context.
Icons for all of them work, EXCEPT "edit". When that button is disabled, the image won't show, but an image missing image is displayed in the browser.
These are my inherits:
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwtee.SmartGwtEE"/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartclient.theme.enterpriseblue.EnterpriseBlue"/>
<inherits name="com.google.gwt.i18n.I18N"/>
This is how i create the button:
public class CrudToolBarButton extends ImgButton {
private boolean alwaysEnabled;
public CrudToolBarButton(String source, boolean alwaysEnabled) {
this.alwaysEnabled = alwaysEnabled;
setSrc(source);
setSize(16);
setShowFocused(false);
setShowRollOver(false);
setShowDown(false);
}
...
new CrudToolBarButton("[SKIN]actions/edit.png", false);
I took a look in the enterpriseblue skin jar and there was no edit_Disabled.png, like there was for the ones that did work ("add.png", for example)
Can anybody help out and perhaps let me know if i'm doing anything wrong?
thanks
Comment