|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.ui.ApplicationImages
This class loads and stores all the images used by an application. This class
requires all the image files to exist in an images directory of the root of
where the application is run. Access to common images are provided via
public static variables. Other images can be loaded via the
ApplicationImages.properties
file and accessed through the
getImageIcon()
method.
Field Summary | |
static java.lang.String |
APPLICATION_IMAGES_BUNDLE
|
static java.lang.String |
IMAGES_DIRECTORY
|
static javax.swing.ImageIcon |
largeAppLogo
|
static javax.swing.ImageIcon |
largeOffButton
|
static javax.swing.ImageIcon |
largeOnButton
|
static javax.swing.ImageIcon |
mainMenuLogo
|
static javax.swing.ImageIcon |
smallAppLogo
|
static javax.swing.ImageIcon |
smallOffButton
|
static javax.swing.ImageIcon |
smallOnButton
|
Constructor Summary | |
ApplicationImages()
|
Method Summary | |
static javax.swing.ImageIcon |
getImageIcon(java.lang.String key)
This method loads an image given it's key name in the ApplicationImages.properties file. |
static javax.swing.ImageIcon |
getImageIconByFile(java.lang.String imageFileName)
This method loads an image as a local file. |
static javax.swing.ImageIcon |
getImageIconByURL(java.net.URL codeBase,
java.lang.String imageFileName)
This method loads an image as a URL. |
static void |
loadImagesByFile()
This method loads the icons locally from the file system. |
static void |
loadImagesByURL(java.net.URL newCodeBase)
This method loads the icons from a url. |
static void |
setCodeBase(java.net.URL newCodeBase)
This method sets the codebase used by the class to load URL images. |
static void |
setCoseBase(java.net.URL newCodeBase)
This method sets the codebase used by the class to load URL images. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static javax.swing.ImageIcon smallOnButton
public static javax.swing.ImageIcon smallOffButton
public static javax.swing.ImageIcon largeOnButton
public static javax.swing.ImageIcon largeOffButton
public static javax.swing.ImageIcon smallAppLogo
public static javax.swing.ImageIcon largeAppLogo
public static javax.swing.ImageIcon mainMenuLogo
public static final java.lang.String IMAGES_DIRECTORY
public static final java.lang.String APPLICATION_IMAGES_BUNDLE
Constructor Detail |
public ApplicationImages()
Method Detail |
public static javax.swing.ImageIcon getImageIcon(java.lang.String key)
ApplicationImages.properties
file.
key
- a key to an image
public static javax.swing.ImageIcon getImageIconByFile(java.lang.String imageFileName)
imageFileName
- the filename of the image to get
public static javax.swing.ImageIcon getImageIconByURL(java.net.URL codeBase, java.lang.String imageFileName)
codeBase
- the URL of the web serverimageFileName
- the file name of the image to retrieve
public static void loadImagesByFile()
public static void loadImagesByURL(java.net.URL newCodeBase)
newCodeBase
- the url codeBase where the icon images are located.public static void setCodeBase(java.net.URL newCodeBase)
newCodeBase
- the new codebasepublic static void setCoseBase(java.net.URL newCodeBase)
newCodeBase
- the new codebase
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |