private void startComponents() { this.cmdBack = new Command("Back", Command.BACK, 0); this.addCommand(this.cmdBack); this.cmdCreate = new Command("Create", Command.ITEM, 1); this.addCommand(this.cmdCreate); this.cmdEdit = new Command("Edit", Command.ITEM, 2); this.addCommand(this.cmdEdit); this.cmdDelete = new Command("Delete", Command.ITEM, 3); this.addCommand(this.cmdDelete); this.setCommandListener(this); }
private void startComponents() { this.txtSearch = new TextField("Name", null, 20, TextField.ANY); this.append(this.txtSearch); this.cmdOk = new Command("Ok", Command.OK, 0); this.addCommand(this.cmdOk); this.cmdCancel = new Command("Cancel", Command.CANCEL, 1); this.addCommand(this.cmdCancel); this.setCommandListener(this); } }
/*************************************************************************** * Returns the javax.microedition.lcdui.List instance to append the result * data to. Will be created if it doesn't exist. * * @return A javax.microedition.lcdui.List object */ protected List getResultsList() { if (aResultsList == null) { aResultsList = new List("J2ME Unit", List.IMPLICIT); // v.s. aResultsList.addCommand(cmd_exit); aResultsList.setCommandListener(this); } return aResultsList; }
private void lateInit() { menuList = new List("Menu", List.IMPLICIT); menuList.addCommand(CMD_BACK); menuList.addCommand(CMD_SELECT); menuList.setCommandListener(menuCommandListener); }
/** * @see net.sf.microlog.midp.RecordStoreLogViewer.AbstractCommand#execute() */ public void execute() { nameField.setString(loader.getRecordStoreName()); display.setCurrent(preferenceScreen); }
/** * @see net.sf.microlog.midp.RecordStoreLogViewer.AbstractCommand#execute() */ public void execute() { display.setCurrent(logScreen); } }
/** * @see net.sf.microlog.core.appender.AbstractAppender#open() */ public synchronized void open() throws IOException { if (logForm == null) { this.logForm = new Form(DEFAULT_LOGFORM_TITLE); } logOpen = true; }
/** * DOCUMENT ME! * * @return DOCUMENT ME! */ public Displayable getCurrent() { return this.display.getCurrent(); }
/** * Creates a new InitialScreenCanvas object. */ public InitialScreenCanvas() { try { this.barbecueImage = Image.createImage("/barbecue.png"); } catch (IOException e) { } }
public void drawRegion(Image src, int x_src, int y_src, int width, int height, int transform, int x_dst, int y_dst, int anchor) { // TODO implement drawRegion super.drawRegion(src, x_src, y_src, width, height, transform, x_dst, y_dst, anchor); }
public void drawRGB(int[] rgbData, int offset, int scanlength, int x, int y, int width, int height, boolean processAlpha) { // TODO implement drawRGB super.drawRGB(rgbData, offset, scanlength, x, y, width, height, processAlpha); }
private void startComponents() { this.txtFormation = new TextField("Formation", formation.getFormation(), 30, TextField.ANY); this.append(this.txtFormation); this.cmdOk = new Command("Ok", Command.OK, 0); this.addCommand(this.cmdOk); this.cmdCancel = new Command("Cancel", Command.CANCEL, 1); this.addCommand(this.cmdCancel); this.setCommandListener(this); } }
private void startComponents() { this.cmdBack = new Command("Back", Command.BACK, 0); this.addCommand(this.cmdBack); this.setCommandListener(this); }
private void startComponents() { this.txtBedNumber = new TextField("Bed number", String.valueOf(bed.getNumber()), 3, TextField.NUMERIC); this.append(this.txtBedNumber); this.txtBedFloor = new TextField("Bed floor", String.valueOf(bed.getFloor()), 15, TextField.NUMERIC); this.append(this.txtBedFloor); this.cmdOk = new Command("Ok", Command.OK, 0); this.addCommand(this.cmdOk); this.cmdCancel = new Command("Cancel", Command.CANCEL, 1); this.addCommand(this.cmdCancel); this.setCommandListener(this); } }
private void startComponents() { this.cmdBack = new Command("Back", Command.BACK, 0); this.addCommand(this.cmdBack); this.cmdCreate = new Command("Create", Command.ITEM, 1); this.addCommand(this.cmdCreate); this.cmdEdit = new Command("Edit", Command.ITEM, 2); this.addCommand(this.cmdEdit); this.cmdDelete = new Command("Delete", Command.ITEM, 3); this.addCommand(this.cmdDelete); this.setCommandListener(this); }
private void startComponents() { this.cmdBack = new Command("Back", Command.BACK, 0); this.addCommand(this.cmdBack); this.cmdLeave = new Command("Leave", Command.ITEM, 1); this.addCommand(this.cmdLeave); this.setCommandListener(this); }
private void startComponents() { this.cmdBack = new Command("Back", Command.BACK, 0); this.addCommand(this.cmdBack); this.cmdCreate = new Command("Create", Command.ITEM, 1); this.addCommand(this.cmdCreate); this.cmdEdit = new Command("Edit", Command.ITEM, 2); this.addCommand(this.cmdEdit); this.cmdDelete = new Command("Delete", Command.ITEM, 3); this.addCommand(this.cmdDelete); this.setCommandListener(this); }
private void startComponents() { this.cmdBack = new Command("Back", Command.BACK, 0); this.addCommand(this.cmdBack); this.cmdCreate = new Command("Create", Command.ITEM, 1); this.addCommand(this.cmdCreate); this.cmdEdit = new Command("Edit", Command.ITEM, 2); this.addCommand(this.cmdEdit); this.cmdDelete = new Command("Delete", Command.ITEM, 3); this.addCommand(this.cmdDelete); this.cmdSearch = new Command("Search", Command.ITEM, 4); this.addCommand(this.cmdSearch); this.setCommandListener(this); }