|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hardtokenmgmt.core.ui.UIHelper
public class UIHelper
Class used for image and language resource handling Uses the global and administrator setting interfaces to retrieve the localization.
| Constructor Summary | |
|---|---|
UIHelper()
|
|
| Method Summary | |
|---|---|
static int |
getAppHeight()
|
static int |
getAppWidth()
|
static java.awt.Color |
getColor(java.lang.String key)
Method that reads a property value of 0xNNNNNN were N is a number and returns a Color object |
static javax.swing.JTextField |
getCopyPasteLabel()
Generates a label that can be copy and pasted Is built upon a JTextField instead of a JLabel |
static java.awt.Color |
getErrorMsgForeground()
|
static java.awt.Font |
getFont(java.lang.String key)
Method that reads a property value of the format ; |
static javax.swing.Icon |
getImage(java.lang.String filename)
Method fetching an image from the resources/images directory |
static java.awt.Font |
getLabelFontBold()
|
static javax.swing.Icon |
getLogo()
|
static java.awt.Color |
getNormalMsgForeground()
|
static java.lang.String |
getText(java.lang.String key)
Method that internationalizes the resource files in the UI. |
static java.awt.Font |
getTitleFont()
|
static java.awt.Color |
getWarnMsgForeground()
|
static void |
setTheme()
Method that sets the application theme from a the theme configuration file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIHelper()
| Method Detail |
|---|
public static java.lang.String getText(java.lang.String key)
key - public static int getAppHeight()
public static int getAppWidth()
public static javax.swing.Icon getLogo()
public static void setTheme()
public static java.awt.Font getLabelFontBold()
public static java.awt.Font getTitleFont()
public static java.awt.Color getNormalMsgForeground()
public static java.awt.Color getErrorMsgForeground()
public static java.awt.Color getWarnMsgForeground()
public static java.awt.Color getColor(java.lang.String key)
public static java.awt.Font getFont(java.lang.String key)
public static javax.swing.Icon getImage(java.lang.String filename)
filename - (without path)
public static javax.swing.JTextField getCopyPasteLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||