From: <em...@ro...> - 2004-05-28 12:35:59
|
And another one from me, concerning the use of images. I've looked through your context.xml to see how to define images, and I think its very complete, but in some cases a bit too complete. I understand the meaning to include resource bundles for your images (so you can have different images based on languages) but for a simple application (with only a couple of very simple icon's) its a bit too much. How about being able to define them like this: <bean id="imageSource" class="org.springframework.rcp.image.AwtImageSourceImpl"> <constructor-arg index="0"> <props> <prop key="cancel.icon">images/alert/x.gif</prop> </props> </constructor-arg> </bean> Therefor an AmtImageSourceImpl could be made up without resources, but that means that the AwtImageSourceImpl should implement a different interface (with only the getImage(String key)) command, or the AwtImageSource interface should extend that and the existing AwtImageSource interface should be renamed to AwtImageResource interface of something like that. Cheers Ronald |