KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > jellytools > modules > xml > catalog > nodes > CatalogEntryNode


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.jellytools.modules.xml.catalog.nodes;
20
21 /*
22  * CatalogEntryNode.java
23  *
24  * Created on 11/13/03 4:02 PM
25  */

26
27 import org.netbeans.jellytools.actions.*;
28 import org.netbeans.jellytools.nodes.Node;
29 import org.netbeans.jellytools.Bundle;
30 import javax.swing.tree.TreePath JavaDoc;
31 import java.awt.event.KeyEvent JavaDoc;
32 import org.netbeans.jemmy.operators.JTreeOperator;
33
34 /** CatalogEntryNode Class
35  * @author ms113234 */

36 public class CatalogEntryNode extends Node {
37     
38     private static final Action viewAction = new ViewAction();
39     private static final Action propertiesAction = new PropertiesAction();
40
41     /** creates new CatalogEntryNode
42      * @param tree JTreeOperator of tree
43      * @param treePath String tree path */

44     public CatalogEntryNode(JTreeOperator tree, String JavaDoc treePath) {
45         super(tree, treePath);
46     }
47
48     /** creates new CatalogEntryNode
49      * @param tree JTreeOperator of tree
50      * @param treePath TreePath of node */

51     public CatalogEntryNode(JTreeOperator tree, TreePath JavaDoc treePath) {
52         super(tree, treePath);
53     }
54
55     /** creates new CatalogEntryNode
56      * @param parent parent Node
57      * @param treePath String tree path from parent Node */

58     public CatalogEntryNode(Node parent, String JavaDoc treePath) {
59         super(parent, treePath);
60     }
61
62     /** tests popup menu items for presence */
63     public void verifyPopup() {
64         verifyPopup(new Action[]{
65             viewAction,
66             propertiesAction
67         });
68     }
69
70     /** performs ViewAction with this node */
71     public void view() {
72         viewAction.perform(this);
73     }
74
75     /** performs PropertiesAction with this node */
76     public void properties() {
77         propertiesAction.perform(this);
78     }
79 }
80
81
Popular Tags