|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.yospace.yae.yogi.UIManager
This is the abstract superclass of UI managers. It performs the UI specific decisions
about focus management, and boilerplate images, and it maps YogiComponents to
their corresponding UI delegates (subclasses of ComponentUI).
| Field Summary | |
static int |
DIALOG_ALERT_IMAGE
Identifier for requesting this UI's standard image for Alert-style dialogs. |
static int |
DIALOG_CONFIRM_IMAGE
Identifier for requesting this UI's standard image for Confirm-style dialogs. |
static int |
DIALOG_WAITING_IMAGE
Identifier for requesting this UI's standard image for Waiting-style dialogs. |
| Constructor Summary | |
UIManager()
|
|
| Method Summary | |
protected boolean |
buildSystemStringResources(java.lang.String resourcesXmlUrl)
Builds the Hashtable of system string resources from a given URL. |
abstract Image |
getDialogImage(int type)
This method returns an Image object for displaying on dialog windows. |
abstract FocusManager |
getFocusManager()
This factory method returns the FocusManager appropriate to
the current Look and Feel. |
abstract int[] |
getKeyMapping(java.lang.String actionName)
Retrieves the current key mappings for the specified action name. |
java.lang.String |
getSystemStringResource(java.lang.String resourceId)
This method returns the system String resource mapped to the specified id. |
abstract ComponentUI |
getUI(java.lang.String componentClassName)
This factory method retrieves an instance of the UI object corresponding to the specified YogiComponent's fully qualified class name. |
abstract ComponentUI |
getUI(YogiComponent component)
This factory method retrieves an instance of the UI object corresponding to the specified YogiComponent. |
abstract boolean |
isMappedKey(int key,
java.lang.String actionName)
Determines whether the supplied key code has been mapped to the supplied action name. |
abstract void |
setKeyMapping(int[] keys,
java.lang.String actionName)
Maps the specified keycodes to the supplied action name. |
abstract void |
setUI(java.lang.String componentClassName,
java.lang.String uiComponentClassName)
This method registers a UI class against the specified component type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DIALOG_ALERT_IMAGE
getDialogImage(int type),
YogiPopup.showDialog(),
YogiPopup.DIALOG_ALERTpublic static final int DIALOG_CONFIRM_IMAGE
getDialogImage(int type),
YogiPopup#showDialog,
YogiPopup.DIALOG_CONFIRMpublic static final int DIALOG_WAITING_IMAGE
getDialogImage(int type),
YogiPopup#showDialog,
YogiPopup.DIALOG_WAITING| Constructor Detail |
public UIManager()
| Method Detail |
public abstract ComponentUI getUI(YogiComponent component)
throws java.lang.IllegalArgumentException
YogiComponent. The UI object may be shared amongst
many similar components if it is stateless.component - the component whose UI is to be returned.java.lang.IllegalArgumentException - if there is no corresponding UI class. This may be treated as a
fatal condition for a normal YoGI application, as it implies that a required class is not present, or
that a YoBean has not been installed correctly.getUI(java.lang.String),
ComponentUI.getInstance()
public abstract ComponentUI getUI(java.lang.String componentClassName)
throws java.lang.IllegalArgumentException
YogiComponent's fully qualified class name. The UI object
may be shared amongst many similar components if it is stateless.componentClassName - the component type whose UI is to be returned.java.lang.IllegalArgumentException - if there is no corresponding UI class. This may be treated as a
fatal condition for a normal YoGI application, as it implies that a required class is not present, or
that a YoBean has not been installed correctly.ComponentUI.getInstance()
public abstract void setUI(java.lang.String componentClassName,
java.lang.String uiComponentClassName)
componentClassName - the component class name whose UI is to be defined.uiComponentClassName - the UI class to use for the component, componentClassName.public abstract FocusManager getFocusManager()
FocusManager appropriate to
the current Look and Feel. The FocusManager is responsible for
the focus traversal strategy, and decides how events should be
posted to components.FocusManager.
public abstract boolean isMappedKey(int key,
java.lang.String actionName)
key - the keycode of the key that was pressed. This is the keycode passed by the MIDP
canvas when the key is pressed.actionName - the registered action name. This can be any string.setKeyMapping(int[],java.lang.String)
public abstract void setKeyMapping(int[] keys,
java.lang.String actionName)
keys - an array of keycodes of the keys to be mapped. These are the keycodes passed by the MIDP
canvas when a key is pressed.actionName - the action name to be registered. This can be any string.isMappedKey(int,java.lang.String)public abstract int[] getKeyMapping(java.lang.String actionName)
actionName - the action name to get the key mappings of.public abstract Image getDialogImage(int type)
type - the image type, one of DIALOG_ALERT_IMAGE, DIALOG_CONFIRM_IMAGE
or DIALOG_WAITING_IMAGE.public java.lang.String getSystemStringResource(java.lang.String resourceId)
resourceId - id of the String resource.protected boolean buildSystemStringResources(java.lang.String resourcesXmlUrl)
resourcesXmlUrl - url denoting the location of the string resources XML file.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||