Sun Java System Messenger Express 6 2005Q4 Customization Guide

Modifying the Main Function Tabs

This section describes how to modify the Sun Java System Messenger Express main function tabs shown in Modifying the Main Function Tabs.

Figure 3–1 Sun Java System Messenger Express Main Function Tabs, With Default Labels

Messenger Express Main Function tabs, with default labels

You can modify the following on the Sun Java System Messenger Express main function tabs:

To Modify the Main Function Tabs

To modify the main function tabs, edit the appropriate files as follows:

Functionally, the tabs are constructed by the toolFrame() function. The toolFrame() function calls the tab()function in the main.js file and specifies the text of the tab label to be displayed.

The following functions, located in main.js, handle the default tabs:

Example—Main Function Tabs Modifications

The example shown in Example—Main Function Tabs Modifications moves the Options tab to the right, and changes the text of its tab label to “Preferences.”

Figure 3–2 Example Main Function Tabs Modifications

In this figure the Options tab has been  moved to the right end
of the toolbar, and the text of the tab "Label" has been  changed to "Preferences."

Example—Main Function Tabs Modifications shows the necessary changes to be made in file main.js (layout).


Example 3–1 Altering Function Tabs Layout ( main.js)


function toolFrame() {
.....
’
               <td width=30%\>’ + nbsp + ’</td\>\\n+
tab(i18n[’options’], state == ’Options’, ’selectOptions()’) +
....
}


            

Example—Main Function Tabs Modifications shows the necessary changes to be made in file en/i18n.js (tab labels).


Example 3–2 Altering Function Tabs Labels (en/i18n.js)


// Tabs
i18n[’folders’] = ’Folders’
i18n[’message’] = ’Message’
i18n[’pab’] = ’Addresses’
i18n[’options’] = ’
               Preferences