UI関連 †
ステータスバーに追加 †
1 2 3 4 5 6 | < overlay id = "sample"
< statusbar id = "status-bar" >
< button label = "Press Me" />
</ statusbar >
</ overlay >
|
メニューに追加 †
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | < overlay id = "sample"
< menubar id = "mail-menubar" >
< menu label = "MyMenu" >
< menupopup id = "file-popup2" >
< menuitem label = "New" />
< menuitem label = "Open" />
< menuitem label = "Save" />
< menuseparator />
< menuitem label = "Exit" />
</ menupopup >
</ menu >
</ menubar >
</ overlay >
|
メニューにプッシュボタン †
1 2 3 4 5 6 | < overlay id = "sample"
< menubar id = "mail-menubar" >
< button label = "Press Me" position = "3" />
</ menubar >
</ overlay >
|
DOM Inspector †
- chrome://messenger/content/messenger.xul
Folder関連 †
- gFolderDisplay: グローバル変数。今見てるFolder
FolderDisplay.displayedFolder
https://dev.mozilla.jp/localmdc/localmdc_2728.html
インタフェース
https://dev.mozilla.jp/localmdc/localmdc_7019.html
フォルダ内のメッセージの情報を表示 †
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | function sdlab_buttonClicked(me){
var folder = gFolderDisplay.displayedFolder;
var it = folder.messages;
while (it.hasMoreElements()){
var hdr = it.getNext().QueryInterface(Components.interfaces.nsIMsgDBHdr);
var date = new Date(hdr.dateInSeconds * 1000);
dump(date.getFullYear());
dump( "/" );
dump(date.getMonth() + 1);
dump( "/" );
dump(date.getDate());
dump( " " );
dump(date.getHours());
dump( "\n" );
}
}
|