org.apache.wicket
Interface IResourceFactory

All Known Implementing Classes:
DefaultButtonImageResourceFactory

public interface IResourceFactory

A factory which creates resources for a given specification string. The format of the specification string is determined by the resource factory subclass. If the resource factory produced button images, the specification might include settings relevant to buttons such as the width, height and color of the button, as well as the text to draw on the button.

Author:
Jonathan Locke
See Also:
LocalizedImageResource

Method Summary
 IResource newResource(java.lang.String specification, java.util.Locale locale, java.lang.String style, java.lang.String variation)
           
 

Method Detail

newResource

IResource newResource(java.lang.String specification,
                      java.util.Locale locale,
                      java.lang.String style,
                      java.lang.String variation)
Parameters:
specification - The resource specification string
locale - The locale for the resource
style - The style of the resource (see Session)
variation - The component's variation
Returns:
The resource


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.