net.ponec.jworksheet.resources
Class ResourceProvider

Package class diagram package ResourceProvider
java.lang.Object
  extended by net.ponec.jworksheet.resources.ResourceProvider

public class ResourceProvider
extends java.lang.Object

Provides Images and other resources.


Field Summary
static java.lang.String FILE_CSS
          Cascade Style Sheet
static java.lang.String IMG_ADD
           
static java.lang.String IMG_APPLICATION_DOUBLE
           
static java.lang.String IMG_APPLICATION_LIST
           
static java.lang.String IMG_APPLICATION_SPLIT
           
static java.lang.String IMG_ARROW_DOWN
           
static java.lang.String IMG_ARROW_UNDO
           
static java.lang.String IMG_CANCEL
           
static java.lang.String IMG_DATE
           
static java.lang.String IMG_DELETE
           
static java.lang.String IMG_EMPTY
           
static java.lang.String IMG_HELP
           
static java.lang.String IMG_HOME_PAGE
           
static java.lang.String IMG_INFORMATION
           
static java.lang.String IMG_NEXT
           
static java.lang.String IMG_OK
           
static java.lang.String IMG_PREV
           
static java.lang.String IMG_REPORT
           
static java.lang.String IMG_TICK
           
static java.lang.String IMG_WRENCH
           
static java.lang.String LOGO
          Icon s
static java.lang.String LOGO_TRY
           
static java.lang.String LOGO16
           
static java.lang.String REPORT_BASE
          A Report XSL Style Sheet
static java.lang.String REPORT_BASE2
           
static java.lang.String SORT
           
static java.lang.String TEXT_PROPERTIES
          Localized text properties.
 
Constructor Summary
ResourceProvider()
          Creates a new instance of ResourceProvider
 
Method Summary
 javax.swing.ImageIcon getIcon(java.lang.String name)
          Returns an Icon from a file name.
 javax.swing.ImageIcon getIcon(java.lang.String name, boolean hideIcon)
          Returns an Icon from a file name.
 java.awt.Image getImage(java.lang.String name)
          Returns an Image from a file name.
 java.lang.String getText(java.lang.String key, java.util.Locale locale)
          Returns Localization of the key
 java.net.URL getUrl(java.lang.String fileName)
          Returns a URL of resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_CSS

public static final java.lang.String FILE_CSS
Cascade Style Sheet

See Also:
Constant Field Values

TEXT_PROPERTIES

public static final java.lang.String TEXT_PROPERTIES
Localized text properties.

See Also:
Constant Field Values

REPORT_BASE

public static java.lang.String REPORT_BASE
A Report XSL Style Sheet


REPORT_BASE2

public static java.lang.String REPORT_BASE2

LOGO

public static java.lang.String LOGO
Icon s


LOGO16

public static java.lang.String LOGO16

LOGO_TRY

public static java.lang.String LOGO_TRY

SORT

public static java.lang.String SORT

IMG_ADD

public static final java.lang.String IMG_ADD
See Also:
Constant Field Values

IMG_APPLICATION_DOUBLE

public static final java.lang.String IMG_APPLICATION_DOUBLE
See Also:
Constant Field Values

IMG_APPLICATION_LIST

public static final java.lang.String IMG_APPLICATION_LIST
See Also:
Constant Field Values

IMG_APPLICATION_SPLIT

public static final java.lang.String IMG_APPLICATION_SPLIT
See Also:
Constant Field Values

IMG_ARROW_DOWN

public static final java.lang.String IMG_ARROW_DOWN
See Also:
Constant Field Values

IMG_ARROW_UNDO

public static final java.lang.String IMG_ARROW_UNDO
See Also:
Constant Field Values

IMG_DATE

public static final java.lang.String IMG_DATE
See Also:
Constant Field Values

IMG_DELETE

public static final java.lang.String IMG_DELETE
See Also:
Constant Field Values

IMG_HELP

public static final java.lang.String IMG_HELP
See Also:
Constant Field Values

IMG_INFORMATION

public static final java.lang.String IMG_INFORMATION
See Also:
Constant Field Values

IMG_REPORT

public static final java.lang.String IMG_REPORT
See Also:
Constant Field Values

IMG_TICK

public static final java.lang.String IMG_TICK
See Also:
Constant Field Values

IMG_WRENCH

public static final java.lang.String IMG_WRENCH
See Also:
Constant Field Values

IMG_OK

public static final java.lang.String IMG_OK
See Also:
Constant Field Values

IMG_CANCEL

public static final java.lang.String IMG_CANCEL
See Also:
Constant Field Values

IMG_EMPTY

public static final java.lang.String IMG_EMPTY
See Also:
Constant Field Values

IMG_HOME_PAGE

public static final java.lang.String IMG_HOME_PAGE
See Also:
Constant Field Values

IMG_PREV

public static final java.lang.String IMG_PREV
See Also:
Constant Field Values

IMG_NEXT

public static final java.lang.String IMG_NEXT
See Also:
Constant Field Values
Constructor Detail

ResourceProvider

public ResourceProvider()
Creates a new instance of ResourceProvider

Method Detail

getUrl

public java.net.URL getUrl(java.lang.String fileName)
Returns a URL of resource.


getIcon

public javax.swing.ImageIcon getIcon(java.lang.String name,
                                     boolean hideIcon)
Returns an Icon from a file name.


getIcon

public javax.swing.ImageIcon getIcon(java.lang.String name)
Returns an Icon from a file name.


getImage

public java.awt.Image getImage(java.lang.String name)
Returns an Image from a file name.


getText

public java.lang.String getText(java.lang.String key,
                                java.util.Locale locale)
Returns Localization of the key



Copyright © 2007-2009 PPonec