nu.zoom.ui
Interface Resources

All Known Implementing Classes:
ResourcesImpl

public interface Resources

Hide the platform to get resources. This is mainly to prepare for moving from zoom-desktop to OSGI & Netbeans.

Author:
"Johan Maasing" <johan@zoom.nu>

Nested Class Summary
static class Resources.ResourceNotFoundException
          Indicates that a requested resource can not be found.
 
Method Summary
 String format(String key, Object... args)
          Get a localized string template and insert values.
 ImageIcon getIcon(String key)
          Get a localized image.
 String getMessage(String key)
          Get a localized string.
 

Method Detail

getMessage

String getMessage(String key)
                  throws Resources.ResourceNotFoundException
Get a localized string.

Parameters:
key - The name of the resource string to get.
Returns:
The resource string.
Throws:
nu.zoom.catonine.ui.Resources.ResourceNotFoundException - If the resource can not be found.
Resources.ResourceNotFoundException

format

String format(String key,
              Object... args)
              throws Resources.ResourceNotFoundException
Get a localized string template and insert values.

Parameters:
key - The name of the resource string to get.
args - The parametrs that are to be inserted into the string template.
Returns:
The string template with values inserted.
Throws:
nu.zoom.catonine.ui.Resources.ResourceNotFoundException - If the resource can not be found.
Resources.ResourceNotFoundException

getIcon

ImageIcon getIcon(String key)
                  throws Resources.ResourceNotFoundException
Get a localized image.

Parameters:
key - The resouce name that points to the image name.
Returns:
The image.
Throws:
nu.zoom.catonine.ui.Resources.ResourceNotFoundException - If the resource or the image can not be found.
Resources.ResourceNotFoundException


Copyright © 2012. All Rights Reserved.