* Creates the "option pane".
*
* @return the option pane <code>Component</code>
*/
private Component createOptionPane() {
Button button;
Label label;
Column optionColumn = new Column();
optionColumn.setStyleName("MailScreen.OptionColumn");
Column folderSelectColumn = new Column();
folderSelectColumn.setStyleName("MailScreen.FolderSelectColumn");
optionColumn.add(folderSelectColumn);
label = new Label(Messages.getString("MailScreen.PromptFolderSelect"));
folderSelectColumn.add(label);
folderSelect = new SelectField();
folderSelect.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setFolder(folders[folderSelect.getSelectedIndex()]);
}
});
folderSelectColumn.add(folderSelect);
Column actionsColumn = new Column();
optionColumn.add(actionsColumn);
button = new Button(Messages.getString("MailScreen.ButtonNewMessage"), Styles.ICON_24_MAIL_COMPOSE);
button.setStyleName("MailScreen.OptionButton");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
processCompose(null);
}
});
actionsColumn.add(button);
button = new Button(Messages.getString("MailScreen.ButtonReplyTo"), Styles.ICON_24_MAIL_REPLY);
button.setStyleName("MailScreen.OptionButton");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (selectedMessage != null) {
processCompose(selectedMessage);
}
}
});
actionsColumn.add(button);
button = new Button(Messages.getString("MailScreen.ButtonLogOut"), Styles.ICON_24_EXIT);
button.setStyleName("MailScreen.OptionButton");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
((EmailApp) getApplicationInstance()).disconnect();
}
});
optionColumn.add(button);