|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.beans.util.CMBUtil
Utilities provides GUI-specific and this package-specific resource locating functions.
Field Summary | |
static int |
BOTTOM
Frame/window location position |
static int |
CENTER
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
TOP
|
static java.lang.String |
UTIL_LITERAL_BUNDLE
The resource file containing literals displayed in builder tools, including poperty display name, and short description. |
static java.lang.String |
UTIL_MESSAGE_BUNDLE
The message resource file containing design time and default runtime messages. |
Constructor Summary | |
CMBUtil()
|
Method Summary | |
static java.lang.String |
getLiteralString(java.lang.String key)
Get the literal string from resource bundle. |
static java.lang.String |
getMessageString(java.lang.String key)
Get the message string from resource bundle. |
static void |
setLocation(java.awt.Window window,
int pos)
Set the window location in a screen. |
static void |
setLocation(java.awt.Window window,
int xPos,
int yPos)
Set the window location in a screen. |
static void |
setWindowIconFromFile(java.awt.Frame frame,
java.lang.String fileName)
Set window icon from image file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String UTIL_LITERAL_BUNDLE
CMBUtilLiteral.properties - for default locale and English CMBUtilLiteral_it_IT.properties - for Italian CMBUtilLiteral_ja_JP.properties - for Japanese CMBUtilLiteral_zh_CN.properties - for simplified Chinese etc.Application designer can modify these files to provide default values global to all applications.
public static final java.lang.String UTIL_MESSAGE_BUNDLE
CMBUtilMessage.properties - for default locale and English CMBUtilMessage_it_IT.properties - for Italian CMBUtilMessage_ja_JP.properties - for Japanese CMBUtilMessage_zh_CN.properties - for simplified Chinese etc.Application designer can modify these files to provide default values global to all applications.
public static final int CENTER
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
Constructor Detail |
public CMBUtil()
Method Detail |
public static java.lang.String getLiteralString(java.lang.String key)
key
- the resource IDpublic static java.lang.String getMessageString(java.lang.String key)
key
- the resource IDpublic static void setLocation(java.awt.Window window, int pos)
window
- the GUI object to set location forpos
- the position, can be CENTER
, LEFT
,
RIGHT
, TOP
, or BOTTOM
public static void setLocation(java.awt.Window window, int xPos, int yPos)
window
- the GUI object to set location forxPos
- the horizontal position, CENTER
, LEFT
,
or RIGHT
,yPos
- the vertical position, CENTER
, TOP
,
or BOTTOM
public static void setWindowIconFromFile(java.awt.Frame frame, java.lang.String fileName) throws java.lang.Exception
frame
- the window to set icon forfileName
- the image file namejava.lang.Exception
- if create image file failed
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |