|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.PingOO.DLAI.lib.PWidget.PManager
|
+--org.PingOO.DLAI.lib.PWidget.DefaultPManager
Default manager implementation for PComponents.
This class is (supposed to be) the only one to access the org.PingOO.DLAI.lib.util package.
PManager| Field Summary | |
static java.lang.String |
DEFAULT_MODULE
The default module for a PComponent. |
static int |
MOUSE_AUTO_FOCUS
The targeted component automatically gets the focus. |
static int |
MOUSE_FOCUS_ON_CLICK
The targeted component automatically gets the when the mouse is clicked. |
static int |
WINDOW_AUTO_RAISE
A window (frame, window or internal frame) automatically raises when getting focus. |
static int |
WINDOW_RAISE_ON_CLICK
A window (frame, window or internal frame) automatically raises when the mouse is clicked. |
| Fields inherited from class org.PingOO.DLAI.lib.PWidget.PManager |
BIG_ICON,
DEFAULT_MODULE,
defaultPManager,
MOUSE_AUTO_FOCUS,
MOUSE_FOCUS_ON_CLICK,
SMALL_ICON,
WINDOW_AUTO_RAISE,
WINDOW_RAISE_ON_CLICK |
| Constructor Summary | |
DefaultPManager()
Creates a new default PManager; |
|
| Method Summary | |
boolean |
getDebugException()
Gets the debugging value for exceptions. |
boolean |
getDebugGraphics()
Gets the debugging value for painting component. |
javax.swing.JDesktopPane |
getDesktop()
Return the default current desktop (if any) |
java.awt.Font |
getFont()
Returns the font to use on the current PComponent. |
javax.swing.Icon |
getIcon(java.lang.String identifier)
Return the desired icon, using the default set. |
javax.swing.Icon |
getIcon(java.lang.String identifier,
java.lang.String module)
Return the desired icon, using the given set. |
javax.swing.Icon |
getIcon(java.lang.String identifier,
java.lang.String module,
int mode)
Return the desired icon, using the given set. |
java.awt.Image |
getImage(javax.swing.Icon icon)
Return the corresponding image of the given icon. |
java.util.Locale |
getLocale()
Gets the current locale. |
int |
getMouseFocus()
Gets the current focus mode. |
java.lang.String |
getString(java.lang.String stringKey)
Return the localized text to use with the current component. |
java.lang.String |
getString(java.lang.String stringKey,
java.lang.String module)
Return the localized text to use with the current component. |
int |
getWindowRaise()
Gets the current window raising mode. |
int |
getXGap()
Returns the default horizontal gap between components. |
int |
getXInset()
Returns the default horizontal inset (left and right border width) of the component. |
int |
getYGap()
Returns the default horizontal gap between components. |
int |
getYInset()
Returns the default vertical inset (top and bottom border height) of the component. |
javax.swing.Icon |
toBigIcon(javax.swing.Icon smallIcon)
Transforms a small icon into a big icon. |
javax.swing.Icon |
toSmallIcon(javax.swing.Icon bigIcon)
Transforms a big icon into a small icon. |
| Methods inherited from class org.PingOO.DLAI.lib.PWidget.PManager |
getInstance |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int MOUSE_AUTO_FOCUS
public static final int MOUSE_FOCUS_ON_CLICK
public static final int WINDOW_AUTO_RAISE
public static final int WINDOW_RAISE_ON_CLICK
public static final java.lang.String DEFAULT_MODULE
PComponent.| Constructor Detail |
public DefaultPManager()
| Method Detail |
public java.lang.String getString(java.lang.String stringKey)
stringKey - The key used to retreive the localized string.null.
public java.lang.String getString(java.lang.String stringKey,
java.lang.String module)
stringKey - The key used to retreive the localized string.module - The set where to look for the localized string.null.public java.awt.Font getFont()
null.public int getXGap()
public int getYGap()
public int getXInset()
public int getYInset()
public int getMouseFocus()
MOUSE_FOCUS_ON_CLICK, MOUSE_LAZY_FOCUS, or MOUSE_AUTO_FOCUS.public int getWindowRaise()
WINDOW_RAISE_ON_CLICK or WINDOW_AUTO_RAISE.public boolean getDebugGraphics()
true if the debug is on, false otherwise.public boolean getDebugException()
true if the debug is on, false otherwise.public java.util.Locale getLocale()
public javax.swing.Icon toSmallIcon(javax.swing.Icon bigIcon)
bigIcon - The icon to reduce.public javax.swing.Icon toBigIcon(javax.swing.Icon smallIcon)
smallIcon - The icon to expand.public javax.swing.Icon getIcon(java.lang.String identifier)
identifier - The icon's identifier.
public javax.swing.Icon getIcon(java.lang.String identifier,
java.lang.String module)
identifier - The icon's identifier.module - The set where to look for the icon.
public javax.swing.Icon getIcon(java.lang.String identifier,
java.lang.String module,
int mode)
identifier - The icon's identifier.module - The set where to look for the icon.mode - The mode, either BIG_ICON or SMALL_ICON.public java.awt.Image getImage(javax.swing.Icon icon)
icon - The targeted icon.public javax.swing.JDesktopPane getDesktop()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||