Methods Summary |
---|
public static boolean | getHomeIconState()This function is public so that unit test can refer it
return homeIconState;
|
public static void | init(MIDletProxyList theMidletProxyList)A static method that initialize singleton IndicatorBar class
if (singleton == null) {
midletProxyList = theMidletProxyList;
singleton = new IndicatorManager();
midletProxyList.addListener(singleton);
}
|
public void | midletAdded(MIDletProxy midlet)Called when a MIDlet is added to the list.
// IndicatorManager does not care if midlet is added
|
public void | midletRemoved(MIDletProxy midlet)Called when a MIDlet is removed from the list.
setHomeIconState(midletProxyList.isAlertWaitingInBackground());
|
public void | midletStartError(int externalAppId, int suiteId, java.lang.String className, int errorCode, java.lang.String errorDetails)Called when error occurred while starting a MIDlet object.
|
public void | midletUpdated(MIDletProxy midlet, int fieldId)Called when the state of a MIDlet in the list is updated.
setHomeIconState(midletProxyList.isAlertWaitingInBackground());
|
private static void | setHomeIconState(boolean newHomeIconState)This method is called whenever home icon needs to be
turned on/off
if (homeIconState != newHomeIconState) {
homeIconState = newHomeIconState;
toggleHomeIcon0(homeIconState);
}
|
private static native void | toggleHomeIcon0(boolean isHomeOn)Native method to toggle the home icon
|