|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.jellytools.modules.db.nodes; import javax.swing.tree.TreePath; import org.netbeans.jellytools.actions.*; import org.netbeans.jellytools.modules.db.actions.*; import org.netbeans.jellytools.nodes.Node; /* * ConnectionNode.java * * Created on 1/14/03 4:57 PM */ import org.netbeans.jemmy.operators.JTreeOperator; /** ConnectionNode Class * @author ms113234 */ public class ConnectionNode extends DBNode { private static final Action addConnectionAction = new AddConnectionAction(); private static final Action connectAction = new ConnectAction(); private static final Action connectAsAction = new ConnectAsAction(); private static final Action disconnectAction = new DisconnectAction(); private static final Action executeCommandAction = new ExecuteCommandAction(); private static final Action testDriverAction = new TestDriverAction(); private static final Action cutAction = new CutAction(); private static final Action copyAction = new CopyAction(); private static final Action pasteAction = new PasteAction(); private static final Action deleteAction = new DeleteAction(); private static final Action propertiesAction = new PropertiesAction(); /** creates new ConnectionNode * @param tree JTreeOperator of tree * @param treePath String tree path */ public ConnectionNode(JTreeOperator tree, String treePath) { super(tree, treePath); } /** creates new ConnectionNode * @param tree JTreeOperator of tree * @param treePath TreePath of node */ public ConnectionNode(JTreeOperator tree, TreePath treePath) { super(tree, treePath); } /** creates new ConnectionNode * @param parent parent Node * @param treePath String tree path from parent Node */ public ConnectionNode(Node parent, String treePath) { super(parent, treePath); } /** tests popup menu items for presence */ public void verifyPopup() { verifyPopup(new Action[]{ addConnectionAction, connectAction, connectAsAction, disconnectAction, executeCommandAction, testDriverAction, cutAction, copyAction, pasteAction, deleteAction, propertiesAction }); } /** performs AddConnectionAction with this node */ public void addConnection() { addConnectionAction.perform(this); } /** performs ConnectAction with this node */ public void connect() { connectAction.perform(this); } /** performs ConnectAsAction with this node */ public void connectAs() { connectAsAction.perform(this); } /** performs DisconnectAction with this node */ public void disconnect() { disconnectAction.perform(this); } /** performs ExecuteCommandAction with this node */ public void executeCommand() { executeCommandAction.perform(this); } /** performs TestDriverAction with this node */ public void testDriver() { testDriverAction.perform(this); } /** performs CutAction with this node */ public void cut() { cutAction.perform(this); } /** performs CopyAction with this node */ public void copy() { copyAction.perform(this); } /** performs PasteAction with this node */ public void paste() { pasteAction.perform(this); } /** performs DeleteAction with this node */ public void delete() { deleteAction.perform(this); } /** performs PropertiesAction with this node */ public void properties() { propertiesAction.perform(this); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.