1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.xmlhammer.gui.actions;
22
23 import org.bounce.RunnableAction;
24 import org.xmlhammer.gui.XMLHammer;
25
26 /***
27 * An action that can be used to show Properties for a specific page.
28 *
29 * @version $Revision$, $Date$
30 * @author Edwin Dankert <edankert@gmail.com>
31 */
32 public class HelpQuickStartAction extends RunnableAction {
33 private static final long serialVersionUID = 3258134648029526321L;
34
35 private XMLHammer parent = null;
36
37 /***
38 * The constructor for the action which shows Properties for a specific page.
39 *
40 * @param page the page the properties should be shown for.
41 */
42 public HelpQuickStartAction(XMLHammer parent) {
43 super("Quick Start");
44
45 putValue(MNEMONIC_KEY, new Integer('Q'));
46 putValue(SHORT_DESCRIPTION, "Quick Start");
47
48 this.parent = parent;
49 }
50
51 /***
52 * The implementation of the Page Properties action, called
53 * after a user action.
54 */
55 public void run() {
56 parent.showHelpQuickStart();
57 }
58 }