/** * DOCUMENT ME! */ protected void startComponents() { this.append("Formations", null); this.append("Beds", null); this.append("Doctors", null); this.append("Patients", null); this.append("-----", null); this.append("Add internment", null); this.append("Leave patient", null); this.append("-----", null); this.append("Free beds report", null); this.cmdExit = new Command("Exit", Command.ITEM, 3); this.addCommand(this.cmdExit); this.setCommandListener(this); } }
/*************************************************************************** * Add a string to the result output. * * @param sText * The text to add */ public void addToResultsList(String sText) { if (bScreenOutput) getResultsList().append(sText, null); if (bTextOutput) aWriter.println(sText); }
/*************************************************************************** * Add a string to the result output. * * @param t * The text to add */ public void addToResultsList(Throwable t) { if (bScreenOutput) { String sMsg = ((t.getMessage() != null) ? t.getMessage() : t.getClass().getName()); getResultsList().append(sMsg, null); } if (bTextOutput) t.printStackTrace(); }
menuList.append(((Command) commandsTable.elementAt(i)).getLabel(), null);
private void startData() { PersistableManager pm = PersistableManager.getInstance(); try { this.deleteAll(); Class formationClass = Class.forName("net.sourceforge.floggy.persistence.model.Formation"); formations = pm.find(formationClass, null, this); for (int i = 0; i < formations.size(); i++) { Formation element = (Formation) formations.get(i); this.append(element.getFormation(), null); } } catch (Exception e) { HospitalMIDlet.showException(e); } } }
churrasSalvosList.append(savedBarbecues[i].getDescription(), null);