nsMsgNavigationType 编辑

The nsMsgNavigationType interface contains constants used for message navigation in Thunderbird. For example to move forward a message, you would call:

 // assuming gDBView is a global nsIMsgDBView
 var resultId = new Object();
 var resultIndex = new Object();
 var threadIndex = new Object();
 gDBView.viewNavigate(Components.interfaces.nsMsgNavigationType.nextMessage,
       resultId, resultIndex, threadIndex, true);

The nsMsgNavigationType interface is defined as a global variable in Thunderbird:

 var nsMsgViewCommandType = Components.interfaces.nsMsgViewCommandType;
mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article.   Last changed in Gecko 1.9 (Firefox 3)

Constants

NameValueDescription
firstMessage1Go to the first message in the view.
nextMessage2Go to the next message in the view. Will wrap around if the wrap flag is set to true.
previousMessage3Go to the previous message in the view. Will wrap around if the wrap flag is set to true.
lastMessage4Go to the last message in the view.
toggleThreadKilled5Must match nsMsgViewCommandType toggleThreadKilled.
firstUnreadMessage6Go to the first unread message in the view.
nextUnreadMessage7Go to the next unread message in the view. Will wrap around if the wrap flag is set to true.
previousUnreadMessage8Go to the previous unread message in the view. Will wrap around if the wrap flag is set to true.
lastUnreadMessage9Go to the last unread message in the view.
nextUnreadThread10
nextUnreadFolder11
nextFolder12
readMore13
back15Go back to the previous visited message
forward16Go forward to the previous visited message
firstFlagged17
nextFlagged18
previousFlagged19
firstNew20
editUndo21
editRedo22
toggleSubthreadKilled23

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:99 次

字数:3858

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文