|
|||||||||
| 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
The manager of the PComponent. Used this process to detach the PWidget from the org.PingOO.DLAI.lib.util package, make the PWidget reusable elsewhere without much more (or minimized) changes.
It is up to the implementation of the PManager to find a way to get datas.
Also each PComponent may have a special manager which is not an isntance of DefaultPManager.
DefaultPManager| Field Summary | |
static int |
BIG_ICON
Gets a big icon. |
static java.lang.String |
DEFAULT_MODULE
The default module for a PComponent. |
private static DefaultPManager |
defaultPManager
Hidden instance of the PManager class. |
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 |
SMALL_ICON
Gets a small icon. |
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. |
| Constructor Summary | |
protected |
PManager()
Creates a new PManager. |
| Method Summary | |
abstract boolean |
getDebugException()
Gets the debugging value for exceptions. |
abstract boolean |
getDebugGraphics()
Gets the debugging value for painting component. |
abstract javax.swing.JDesktopPane |
getDesktop()
Return the default current desktop (if any) |
abstract java.awt.Font |
getFont()
Returns the font to use on the current PComponent. |
abstract javax.swing.Icon |
getIcon(java.lang.String identifier)
Return the desired icon, using the default set. |
abstract javax.swing.Icon |
getIcon(java.lang.String identifier,
java.lang.String module)
Return the desired icon, using the given set. |
abstract javax.swing.Icon |
getIcon(java.lang.String identifier,
java.lang.String module,
int mode)
Return the desired icon, using the given set. |
abstract java.awt.Image |
getImage(javax.swing.Icon icon)
Return the corresponding image of the given icon. |
static PManager |
getInstance()
Return the default instance of this class. |
abstract java.util.Locale |
getLocale()
Gets the current locale. |
abstract int |
getMouseFocus()
Gets the current focus mode. |
abstract java.lang.String |
getString(java.lang.String stringKey)
Return the localized text to use with the current component. |
abstract java.lang.String |
getString(java.lang.String stringKey,
java.lang.String module)
Return the localized text to use with the current component. |
abstract int |
getWindowRaise()
Gets the current window raising mode. |
abstract int |
getXGap()
Returns the default horizontal gap between components. |
abstract int |
getXInset()
Returns the default horizontal inset (left and right border width) of the component. |
abstract int |
getYGap()
Returns the default horizontal gap between components. |
abstract int |
getYInset()
Returns the default vertical inset (top and bottom border height) of the component. |
abstract javax.swing.Icon |
toBigIcon(javax.swing.Icon smallIcon)
Transforms a small icon into a big icon. |
abstract javax.swing.Icon |
toSmallIcon(javax.swing.Icon bigIcon)
Transforms a big icon into a small icon. |
| 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.public static final int BIG_ICON
public static final int SMALL_ICON
private static final DefaultPManager defaultPManager
| Constructor Detail |
protected PManager()
| Method Detail |
public static PManager getInstance()
public abstract java.lang.String getString(java.lang.String stringKey)
stringKey - The key used to retreive the localized string.null.
public abstract 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 abstract java.awt.Font getFont()
null.public abstract int getXGap()
public abstract int getYGap()
public abstract int getXInset()
public abstract int getYInset()
public abstract int getMouseFocus()
MOUSE_FOCUS_ON_CLICK, MOUSE_LAZY_FOCUS, or MOUSE_AUTO_FOCUS.public abstract int getWindowRaise()
WINDOW_RAISE_ON_CLICK or WINDOW_AUTO_RAISE.public abstract boolean getDebugGraphics()
true if the debug is on, false otherwise.public abstract boolean getDebugException()
true if the debug is on, false otherwise.public abstract java.util.Locale getLocale()
public abstract javax.swing.Icon toSmallIcon(javax.swing.Icon bigIcon)
bigIcon - The icon to reduce.public abstract javax.swing.Icon toBigIcon(javax.swing.Icon smallIcon)
smallIcon - The icon to expand.public abstract javax.swing.Icon getIcon(java.lang.String identifier)
identifier - The icon's identifier.
public abstract 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 abstract 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 abstract java.awt.Image getImage(javax.swing.Icon icon)
icon - The targeted icon.public abstract javax.swing.JDesktopPane getDesktop()
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||