/** * @see net.sf.microlog.midp.RecordStoreLogViewer.AbstractCommand#execute() */ public void execute() { display.setCurrent(logScreen); } }
/** * DOCUMENT ME! * * @param alertToShow DOCUMENT ME! * @param nextDisplayableToShow DOCUMENT ME! * @param toSave DOCUMENT ME! */ public void show(Alert alertToShow, Displayable nextDisplayableToShow, boolean toSave) { this.display.setCurrent(alertToShow, nextDisplayableToShow); if (toSave) this.toShow.push(nextDisplayableToShow); }
/** * DOCUMENT ME! * * @param toShowDisplayable DOCUMENT ME! * @param toSave DOCUMENT ME! */ public void show(Displayable toShowDisplayable, boolean toSave) { this.display.setCurrent(toShowDisplayable); if (toSave) this.toShow.push(toShowDisplayable); }
/** * DOCUMENT ME! * * @param alertToShow DOCUMENT ME! * * @throws DisplayManagerException DOCUMENT ME! */ public void show(Alert alertToShow) throws DisplayManagerException { if (this.toShow.empty()) throw new DisplayManagerException("Not enough displayables at stack."); this.display.setCurrent(alertToShow, (Displayable) this.toShow.peek()); }
/** * DOCUMENT ME! * * @throws DisplayManagerException DOCUMENT ME! */ public void show() throws DisplayManagerException { if (this.toShow.empty()) throw new DisplayManagerException("Not enough displayables at stack."); display.setCurrent((Displayable) this.toShow.peek()); }
/** * DOCUMENT ME! * * @param displayable DOCUMENT ME! */ public static void setCurrent(Displayable displayable) { if (exception != null) { Alert alert = new Alert("Error", exception.getMessage(), null, AlertType.ERROR); alert.setTimeout(Alert.FOREVER); display.setCurrent(alert, displayable); exception = null; } else { display.setCurrent(displayable); } }
/** * Show an information alert. * * @param message * the message to show. * @param exception * an optional exception to append to the message. Could be null. */ protected void showInfoAlert(String message, Throwable exception) { StringBuffer buffer = new StringBuffer(message); if (exception != null) { buffer.append("\r\n"); buffer.append(exception); } Alert alert = new Alert("Info", buffer.toString(), null, AlertType.INFO); display.setCurrent(alert, display.getCurrent()); }
/** * Start the MIDlet. * * @throws MIDletStateChangeException * if the MIDlet fails to change the state. */ protected void startApp() throws MIDletStateChangeException { Properties properties = new MidletProperties(this, MicrologConstants.DEFAULT_PROPERTY_FILE); loader = new RecordStoreLogLoader(properties); display.setCurrent(logScreen); }
/** * @see net.sf.microlog.midp.RecordStoreLogViewer.AbstractCommand#execute() */ public void execute() { nameField.setString(loader.getRecordStoreName()); display.setCurrent(preferenceScreen); }
/*************************************************************************** * To display the result of the test in a javax.microedition.lcdui.List * screen. */ public void showResult() { if (bScreenOutput) Display.getDisplay(this).setCurrent(getResultsList()); }
if (nCount == 0) { aForm.append("No tests found."); rDisplay.setCurrent(aForm); return; aForm.setCommandListener(this); rDisplay.setCurrent(aForm);