freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

j2me課程設(shè)計--個人通訊錄(編輯修改稿)

2025-02-12 04:57 本頁面
 

【文章內(nèi)容簡介】 { return new Index[0]。 } } catch (RecordStoreException e) { ()。 return new Index[0]。 } catch(IOException e) { ()。 return new Index[0]。 } } //根據(jù)key取出對應(yīng)的索引對象 public Index getIndex(String key) throws ApplicationException { try { if (() 0) { RecordEnumeration records = (new AccountFilter(key), null, false)。 Index index = null。 if (() == 1) { index = ((records .nextRecordId()))。 } return index。 } else { return null。 } } catch (RecordStoreException e) { throw new ApplicationException(e)。 } catch (IOException e) { throw new ApplicationException(e)。 } } //在記錄存儲rs_index中刪除一條索引 public void deleteIndex(String key) throws ApplicationException { try { if (() 0) { RecordEnumeration records = (new IndexFilter(key), null, false)。 while (()) { (())。} } return。 } catch (RecordStoreException e) { throw new ApplicationException(e)。 } } //根據(jù)userName判斷記錄是否存在 public boolean isRecordExist(String userName) throws ApplicationException { try { if (() 0) { RecordEnumeration records = (new IndexFilter(userName), null, false)。 if (() 0) { return true。 } else { return false。 } } else { return false。} } catch (RecordStoreException e) { ()。 return true。 } } //在記錄存儲rs中添加一條Account記錄 public void addRecord(Account account) throws ApplicationException { try { byte[] data = ()。 int id = (data, 0, )。 Index index = new Index((), id)。 addIndex(index)。 } catch (IOException e) {} catch (RecordStoreException e) { throw new ApplicationException(e)。 } } public void deleteRecord(int recordID) throws ApplicationException{ } //根據(jù)userName刪除一條記錄 public void deleteRecord(String userName) throws ApplicationException { try { Index index = getIndex(userName)。 if (index != null) { int recordID = ()。 (recordID)。 (recordID)。 deleteIndex(userName)。 } } catch (RecordStoreException e) { throw new ApplicationException(e)。} } //清空所有記錄 public void clearAllRecord() throws ApplicationException { try { ()。 ()。 ()。 ()。 ()。 } catch (RecordStoreException e) { throw new ApplicationException(e)。 } } //根據(jù)userName返回對應(yīng)Account的對象 public Account getAccount(String userName) throws ApplicationException { try { Index index = getIndex(userName)。 Account account = null。 if (index != null) {account = ((()))。} return account。 } catch (RecordStoreException e) { throw new ApplicationException(e)。 } catch (IOException e) { throw new ApplicationException(e)。 } } //返回所有索引對象 public Index[] listRecord() throws ApplicationException { try { RecordEnumeration menu = (null, null, true)。 byte[] data = new byte[20]。 int length = 1。 int i = 0。 int id = 0。 Index[] index = new Index[()]。 while (()) { id =()。 length = (id)。 if (length ) { data = new byte[length + 10]。 } (id, data, 0)。 index[i] = (data)。 i++。 } return index。 } catch (IOException e) { ()。 return new Index[0]。 } catch (RecordStoreException e) { ()。 return new Index[0]。 } }} 包uipackage 。import .*。public class ConfirmationDialog extends Dialog implements CommandListener{ public static final int YES = 0。 public static final int NO = 1。 protected WaitCanvas canvas。 protected Command noCommand。 protected Command yesCommand。 private String message。 private String yesLabel。 private String noLabel。 public ConfirmationDialog(Display display, String message) { this(display, message, null, null)。 } public ConfirmationDialog(Display display, String amessage, String ayesLabel, String anoLabel) { super(display)。 = (amessage == null) ? 繼續(xù)操作? : amessage。 = (yesLabel == null) ? 確定 : ayesLabel。 = (noLabel == null) ? 返回 : anoLabel。 yesCommand = new Command(yesLabel, , 1)。 noCommand = new Command(noLabel, , 1)。 canvas = new WaitCanvas(message, true)。 (yesCommand)。 (noCommand)。 (this)。} public String getMessage()//(返回message) { return message。 } public void setMessage(String message) //(設(shè)置message){ (message)。 } public void mandAction(Command c, Displayable d) { if (c == yesCommand) { dismiss(YES)。 } else if (c == noCommand) { dismiss(NO)。} } protected Displayable getDisplayable() { return canvas。 }}package 。import 。import 。import 。import 。import 。public class DetailInfoUI extends List implements CommandListener{ private UIController uicontroller。 private int listNum = 0。 public static final Command backCommand = new Command(返回, , 1)。 public DetailInfoUI(UIController uicontroller) { super(, )。 = uicontroller。 (backCommand)。 (this)。 } public void init(Account account) { if (listNu
點擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1