黑莓 - 禁用保存选项BasicEditField? [英] Blackberry - Disable Save option in BasicEditField?

查看:83
本文介绍了黑莓 - 禁用保存选项BasicEditField?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是basiceditfield把来自用户的输入做一些简单的字符串搜索。但是,如果我输入几个字母,并希望回去不继续搜索,它会自动询问是否我要救场的内容。我不希望这种情况发生。我以任何方式可以禁用所做的更改! - 保存 - 删除 - 取消,在basiceditfield选项(或任何为此事EditField中)????请帮助!

I am using a basiceditfield to take input from the user to do some simple string search. But if i type a few letters and wish to go back without continuing the search, it automatically asks me whether to save the contents of the field. I don want this to happen. Can i in any way disable the "Changes made!-save-discard-cancel" option in basiceditfield(or any editfield for that matter)????please help!!!

推荐答案

尝试添加以下内容到MainScreen类:

Try adding this to your MainScreen class:

protected boolean onSavePrompt() {
        return true;
    }

这篇关于黑莓 - 禁用保存选项BasicEditField?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆