|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.ui.framework.java.UIFramework
This class keeps track of global properties for this package.
UIFramework
contains settings that control how
the application's resources are managed, and whether the
look and feel of user interface panels should be set to
conform to that of the current operating system platform.
On initial startup, applications should ensure that the values set are consistent with the desired behavior for the framework.
Field Summary | |
static int |
BYPASS_CACHED_RESOURCES
Indicates that the UI framework should not use cached resource bundles. |
static int |
CHECK_FOR_SERIALIZED
Indicates that the UI framework should check for a serialized panel definition. |
static int |
ONLY_PARSE_XML
Indicates that the UI framework should not check for a serialized panel definition. |
static int |
ONLY_USE_SERIALIZED
Indicates that the UI framework should only use serialized panel definitions. |
static int |
USE_CACHED_RESOURCES
Indicates that the UI framework should use cached resource bundles. |
Method Summary | |
static int |
getResourceMode()
Returns the current resource mode for the UI framework. |
static int |
getSearchMode()
Returns the current search mode for the UI framework. |
static int |
getVersion()
Returns the version of the AS/400 Graphical Toolbox. |
static boolean |
isApplet()
Determines whether the UI framework is to be run as an Applet |
static boolean |
isSystemLookAndFeelEnabled()
Determines whether the UI framework will set the system look and feel for the current operating system. |
static void |
notifyGlobalRegisteredListeners(java.awt.Window window,
boolean show)
|
static void |
registerSetVisibleInterest(java.lang.Object c,
java.lang.reflect.Method m)
Registers a method that is notified on calls to setVisible() |
static void |
removeSetVisibleInterest(java.lang.reflect.Method m)
Removes a registered interest |
static void |
setApplet(boolean applet)
Controls whether the UI framework is running as an Applet. |
static void |
setResourceMode(int resourceMode)
Controls whether the UI framework should use cached resource bundles. |
static void |
setSearchMode(int searchMode)
Controls where the UI framework should obtain panel definitions for panels associated with the current application. |
static void |
setSystemLookAndFeelEnabled(boolean enabled)
Controls whether the UI framework should attempt to set the look and feel for the current operating system platform. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int USE_CACHED_RESOURCES
public static final int BYPASS_CACHED_RESOURCES
public static final int ONLY_USE_SERIALIZED
public static final int CHECK_FOR_SERIALIZED
public static final int ONLY_PARSE_XML
Method Detail |
public static int getResourceMode()
setResourceMode(int)
public static void setResourceMode(int resourceMode)
USE_CACHED_RESOURCES
.resourceMode
- one of the pre-defined resource mode constantsgetResourceMode()
public static int getSearchMode()
setSearchMode(int)
public static void setSearchMode(int searchMode)
CHECK_FOR_SERIALIZED
.searchMode
- one of the pre-defined search mode constantsgetSearchMode()
public static boolean isSystemLookAndFeelEnabled()
setSystemLookAndFeelEnabled(boolean)
public static void setSystemLookAndFeelEnabled(boolean enabled)
true
.enabled
- If true, set the system look and feel; otherwise, do nothing.isSystemLookAndFeelEnabled()
public static void notifyGlobalRegisteredListeners(java.awt.Window window, boolean show)
public static void registerSetVisibleInterest(java.lang.Object c, java.lang.reflect.Method m)
c
- The object that wishes to be notifiedm
- the method on the object to be called.
The method's paramateres are (java.awt.Window, java.lang.Boolean)public static void removeSetVisibleInterest(java.lang.reflect.Method m)
m
- the method that was registeredpublic static boolean isApplet()
setApplet(boolean)
public static void setApplet(boolean applet)
false
.appplet
- If true, the UI framework should run in Applet modeisApplet()
public static int getVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |