1 | public class GlobalOptionsAction extends AbstractColumbaAction {↵ | | 1 | class FinishStep extends AbstractStep {↵
|
2 | public GlobalOptionsAction(IFrameMediator controller) {↵ | | 2 | public ↵
|
3 | super(controller,↵ | | |
|
4 | Globa↵ | | 3 | FinishStep() {↵
|
5 | lResourceLoader.getString("global", "global",↵ | | 4 | super(MailResourceLoader.getString("↵
|
6 | "menu_edit_generaloptions"));↵ | | |
|
|
7 | putValue(SHORT_DESCRIPTION,↵ | | 5 | dialog", "accountwizard", "finish"),↵
|
8 | GlobalResourceLoader.getString("global", "global",↵ | | 6 | MailResourceLoader.getString("↵
|
9 | "menu_edit_generaloptions_tooltip").replaceAll("&", "↵ | | 7 | dialog", "accountwizard",↵
|
10 | "));↵ | | 8 | "finish_description"));↵
|
|
11 | putValue(SMALL_ICON,↵ | | 9 | setCanFinish(true);↵
|
12 | ↵ | | 10 | }↵
|
|
13 | ImageLoader.getSmallIcon(IconKeys.PREFERENCES)↵ | | 11 | protected JComponent createComponent() {↵
|
14 | );↵ | | 12 | JComponent component = new JPanel();↵
|
|
15 | putValue(LARGE_ICON, ImageLoader.getIcon(IconKeys.PREFERENCES));↵ | | 13 | ↵
|
16 | }↵ | | |
|
|
17 | /**↵ | | |
|
18 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)↵ | | |
|
19 | */↵ | | |
|
20 | public void actionPerformed(ActionEvent evt) {↵ | | |
|
21 | JFrame frame = frameMediator.getView().getFrame();↵ | | |
|
22 | new G↵ | | 14 | component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS));↵
|
|
| | | 15 | MultiLineLabel label = new MultiLineLabel(MailResourceLoader.getString(↵
|
| | | 16 | "dialog", "accountwizard", "finish_text"));↵
|
| | | 17 | component.add(label);↵
|
| | | 18 | component.add(Box.createVerticalGlue());↵
|
|
| | | 19 | return component;↵
|
| | | 20 | }↵
|
|
23 | eneralOptionsDialog(frame);↵ | | 21 | public void prepareRendering() {↵
|
24 | | | 22 |
|