This section describes how to modify the Sun Java System Messenger Express message tool bar shown in Modifying the Message Tool Bar.
You can modify the following in the Sun Java System Messenger Express message tool bar:
Change the layout of the tool bar relative to the rest of the page
Alter the layout within the tool bar
Change the text associated with the graphics
To modify the message tool bar, edit the appropriate files as follows:
To customize the layout relative to the rest of the page, edit the toolFrame() function in the main.js file.
To customize the layout within the tool bar and the associated graphics, edit the getToolbar() function in the msg_fs.html file.
To customize the texts associated with the graphics in the Tool Bar, edit the i18n[] values compose, reply, reply all, forward, delete, undelete, previous, and next in the lang/i18n.js file.
Functionally, getToolbar() in msg_fs.html assembles the code and assigns the functions to the graphics by calling toolbar() in main.js, which takes care of items such as colors and text-only versions.
The getToolbar() function in msg_fs.html also calls folderSelection() in main.js to generate the drop-down folder list.
The functions assigned by getToolbar() in msg_fs.html to handle the tools are:
Compose: main.compose(’new’)
Reply: main.compose(’reply’)
Reply All: main.compose(’replyall’)
Forward: main.compose(’forward’)
Move Messages to Folder: parent.move()
Delete and Undelete: parent.delmsg()
Add all Addresses: parent.addAllAddresses()
Previous: parent.prev()
Next: parent.next()
Close: parent.gotofolder()
The example shown in Example—Message Tool Bar Modifications moves “New Message” to the right and abbreviates the text from “Previous” to “Prev.”
Example—Message Tool Bar Modifications shows the necessary changes to be made in file msg_fs.html.
function getToolbar() { var s ... main.WMtoolbar( null,null,’imx/spacer.gif’,5,1,false, i18n[’close’], ’parent.gotofolder()’, ’imx/cancel.gif" alt="’ +i18n[’msg close’], 24, 24, true, null,null,’imx/spacer.gif’,5,1,false, i18n[’compose’], ’main.compose(”new”)’, ’imx/compose.gif" alt="’ + i18n[’msg compose’], 24, 24, true) + <td\><img src="imx/spacer.gif" width="1" height="1"\></td\>\\n’ + .... |
Example—Message Tool Bar Modifications shows the necessary changes to be made in file en/i18n.js.
// Tool Bars .... i18n[’previous’] = ’ Prev ’ |