public class AWTResources
extends java.lang.Object
AWTResources class provides the resources shared in
this package.| 修飾子とタイプ | フィールドと説明 |
|---|---|
static java.awt.Color |
BACKGROUND_COLOR
The default background color.
|
static boolean |
CAN_OPEN_POPUP_IN_MODAL_DIALOG
True if a pop-up window can receive the events even when the pop-up
window is opend within a modal dialog.
|
protected static java.lang.Object |
FOCUS_LOCK
The lock for the foucusing bug workaround.
|
static java.awt.Color |
FOREGROUND_COLOR
The default foreground color.
|
static boolean |
HAS_COPY_AREA_BUG
True if the JDK has the
java.awt.Graphics#copyArea() bug. |
static boolean |
HAS_FOCUS_BUG
True if the JDK has the
sun.awt.windows.WWindowPeer#getFocusPeer() bug. |
protected static boolean |
IN_REQUEST_FOCUS
The state for the foucusing bug workaround.
|
static boolean |
IS_DIRECT_NOTIFICATION
If true, notifies listeners directly without using the event queue.
|
protected static VImage |
NULL_ICON
The default null icon.
|
protected static boolean |
ON_WINDOWS
True if the JVM runs on Windows 95/NT.
|
static java.util.Map |
RENDERING_HINTS
The default rendering hint map.
|
protected static Resources |
Resources |
static boolean |
USE_DOUBLE_BUFFER
The default double buffer policy.
|
| コンストラクタと説明 |
|---|
AWTResources() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static void |
checkComponentState(java.awt.Component comp)
Checks the component state for the specified component.
|
protected static java.awt.Component |
getFocusOwnerWorkaround(java.awt.Component focus)
The
Window#getFocusOwner() workaround. |
static VImage |
getIcon(java.lang.Class baseClass,
java.lang.String file)
Returns the resource icon indicated by the specified class and file.
|
protected static java.awt.Component |
getNativeComponent(java.awt.Component c)
Returns the native component for the specified component.
|
static boolean |
getResourceBoolean(java.lang.String key,
boolean def)
Returns the resource boolean indicated by the specified key.
|
static java.awt.Color |
getResourceColor(java.lang.String key,
java.awt.Color def)
Returns the resource color indicated by the specified key.
|
static int |
getResourceInteger(java.lang.String key,
int def)
Returns the resource integer indicated by the specified key.
|
static java.lang.String |
getResourceString(java.lang.String key)
Returns the resource string indicated by the specified key.
|
static java.lang.String |
getResourceString(java.lang.String key,
java.lang.String def)
Returns the resource string indicated by the specified key.
|
protected static final Resources Resources
protected static VImage NULL_ICON
public static final java.awt.Color FOREGROUND_COLOR
public static final java.awt.Color BACKGROUND_COLOR
public static boolean USE_DOUBLE_BUFFER
public static final java.util.Map RENDERING_HINTS
public static boolean IS_DIRECT_NOTIFICATION
protected static final boolean ON_WINDOWS
public static boolean HAS_FOCUS_BUG
sun.awt.windows.WWindowPeer#getFocusPeer() bug.
Because of this bug, if a lightwight component is focus traversable, an application will be hung up.
This bug has been fixed from JDK1.1.5.
public static boolean CAN_OPEN_POPUP_IN_MODAL_DIALOG
public static boolean HAS_COPY_AREA_BUG
java.awt.Graphics#copyArea() bug.
This bug has arised from JDK1.2.
protected static final java.lang.Object FOCUS_LOCK
protected static boolean IN_REQUEST_FOCUS
public static java.lang.String getResourceString(java.lang.String key)
key - the name of the resource.null
if there is no resource with that key.public static java.lang.String getResourceString(java.lang.String key,
java.lang.String def)
key - the name of the resource.def - a default value.public static int getResourceInteger(java.lang.String key,
int def)
key - the name of the resource.def - a default integer.public static boolean getResourceBoolean(java.lang.String key,
boolean def)
key - the name of the resource.def - a default boolean.public static java.awt.Color getResourceColor(java.lang.String key,
java.awt.Color def)
key - the name of the resource.def - a default color.public static VImage getIcon(java.lang.Class baseClass, java.lang.String file)
baseClass - the base class.file - a file name.public static void checkComponentState(java.awt.Component comp)
If HAS_FOCUS_BUG is true, an application should use
jp.kyasu.awt.{Dialog,Frame,Window} instead of
java.awt.{Dialog,Frame,Window}.
If a top frame has a menu bar on windows, an application should
wrap a lightweight component in a native component, so that pop-up
menu and getLocationOnScreen() work correctly.
java.awt.IllegalComponentStateException - if the component
state is illegal.protected static java.awt.Component getFocusOwnerWorkaround(java.awt.Component focus)
Window#getFocusOwner() workaround.protected static java.awt.Component getNativeComponent(java.awt.Component c)