KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > web > jsf > navigation > graph > actions > AddPageAction


1 /*
2  * OpenPageAction.java
3  *
4  * Created on March 2, 2007, 5:38 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.modules.web.jsf.navigation.graph.actions;
11
12 import java.awt.event.ActionEvent JavaDoc;
13 import javax.swing.AbstractAction JavaDoc;
14 import org.openide.util.NbBundle;
15
16 /**
17  *
18  * @author joelle
19  */

20 public class AddPageAction extends AbstractAction JavaDoc {
21     
22     /** Creates a new instance of OpenPageAction */
23     public AddPageAction() {
24         putValue(NAME, getDisplayName());
25     }
26     /**
27      *
28      * @return
29      */

30     protected String JavaDoc getDisplayName() {
31         return NbBundle.getMessage(AddPageAction.class, "LBL_AddPage");
32     }
33     
34     
35     public void actionPerformed(ActionEvent JavaDoc arg0) {
36         System.out.println("OPEN PAGE HERE.");
37     }
38
39 }
40
Popular Tags