org.sape.carbon.services.console
Class Configurator

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--org.sape.carbon.services.console.Configurator
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class Configurator
extends JFrame

This class provides a basic interface to the Carbon Component Model and the configuration subsystem.

Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.27 $($Author: atayal $ / $Date: 2003/04/29 13:40:31 $)
Author:
Greg Hinkle, January 2002
See Also:
Serialized Form

Field Summary
private  JMenuItem aboutMenuItem
           
private  ClassFinder componentClassFinder
           
private  JScrollPane componentJScrollPane
           
private  JTree componentJTree
           
private  JPopupMenu componentPopupMenu
           
private  JPopupMenu configDocumentPopupMenu
           
private  JPopupMenu configFolderPopupMenu
           
private  JScrollPane configJScrollPane
           
private  ClassFinder configurationClassFinder
           
private  ConfiguratorConfiguration configuratorConfig
           
private  JMenuItem connectToServerMenuItem
           
private  JMenuItem contentMenuItem
           
private  JMenuItem copyMenuItem
           
private  JMenuItem cutMenuItem
           
private  JMenuItem deleteMenuItem
           
private  JDesktopPane desktopPane
           
private  JScrollPane desktopScrollPane
           
private  JMenu editMenu
           
private  JMenuItem executeTestJMenuItem
           
private  JMenuItem exitMenuItem
           
private  JMenu fileMenu
           
private  JMenu helpMenu
           
private  JLabel jLabel1
           
private  JPanel jPanel1
           
private  JPanel jPanel2
           
private  JScrollPane jScrollPane1
           
private  JSeparator jSeparator1
           
private  JSeparator jSeparator2
           
private  JSeparator jSeparator3
           
private  JSeparator jSeparator4
           
private  JSplitPane jSplitPane1
           
private  JSplitPane jSplitPane2
           
private  JMenuItem loadMBeansMenuItem
           
private  JTabbedPane localServerTabPane
           
private  org.apache.commons.logging.Log log
           
private  JMenuBar menuBar
           
private  JTree namespaceJTree
           
private  JMenuItem newConfigurationMenuItem
           
private  JMenu newConfigurationSubMenu
           
private  JMenuItem newDirectoryMenuItem
           
private  JMenuItem nsCopyMenuItem
           
private  JMenuItem nsCutMenuItem
           
private  JMenuItem nsDeleteMenuItem
           
private  JMenuItem nsOpenMenuItem
           
private  JMenuItem nsPasteMenuItem
           
private  JMenuItem openComponentMenuItem
           
private  JMenuItem openMenuItem
           
private  JMenuItem pasteMenuItem
           
private  JMenuItem refreshMenuItem
           
private  JMenuItem reloadConfigMenuItem
           
private  JMenu repositoryMenu
           
private  JMenuItem saveAsMenuItem
           
private  JMenuItem saveMenuItem
           
private  JPanel serverConnectHolderPane
           
private  Map serverConnections
           
private  JMenuItem serverDisconnectMenuItem
           
private  JMenuItem serverRefreshMenuItem
           
private  JPopupMenu serverSelectPopupMenu
           
private  JTree serverSelectTree
           
private  JMenu testMenu
           
private  JMenu windowMenu
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Configurator()
          Creates new form Configurator
 
Method Summary
private  void aboutMenuItemActionPerformed(ActionEvent evt)
           
private  void addDirectory(DefaultMutableTreeNode node)
           
private  void componentJTreeMouseClicked(MouseEvent evt)
           
 void connectToServer(String initialContextFactory, String serverURL, String principle, String credentials)
           
private  void connectToServerMenuItemActionPerformed(ActionEvent evt)
           
private  void editMenuActionPerformed(ActionEvent evt)
           
private  void executeTestJMenuItemActionPerformed(ActionEvent evt)
           
private  void exitForm(WindowEvent evt)
          Exit the Application
private  void exitMenuItemActionPerformed(ActionEvent evt)
           
private  void fileMenuActionPerformed(ActionEvent evt)
           
private  void helpMenuActionPerformed(ActionEvent evt)
           
private  void initComponents()
          This method is called from within the constructor to initialize the form.
private  void loadConfigurationChoices()
           
private  void loadMBeansMenuItemActionPerformed(ActionEvent evt)
           
static void main(String[] args)
           
private  void namespaceJTreeKeyTyped(KeyEvent evt)
           
private  void namespaceJTreeMouseClicked(MouseEvent evt)
           
private  void newConfigurationMenuItemActionPerformed(ActionEvent evt)
           
private  void newDirectoryMenuItemActionPerformed(ActionEvent evt)
           
private  void nsDeleteMenuItemActionPerformed(ActionEvent evt)
           
private  void nsOpenMenuItemActionPerformed(ActionEvent evt)
           
private  void openComponentMenuItemActionPerformed(ActionEvent evt)
           
 void refreshComponents()
           
 void refreshConfigurations()
           
private  void refreshMenuItemActionPerformed(ActionEvent evt)
           
private  void repositoryMenuActionPerformed(ActionEvent evt)
           
private  void serverDisconnectMenuItemActionPerformed(ActionEvent evt)
           
private  void serverRefreshMenuItemActionPerformed(ActionEvent evt)
           
private  void serverSelectTreeMouseClicked(MouseEvent evt)
           
private  void serverSelectTreeValueChanged(TreeSelectionEvent evt)
           
private  void setup()
           
private  void tearDown()
           
private  void testMenuActionPerformed(ActionEvent evt)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

log

private org.apache.commons.logging.Log log

configurationClassFinder

private ClassFinder configurationClassFinder

componentClassFinder

private ClassFinder componentClassFinder

configuratorConfig

private ConfiguratorConfiguration configuratorConfig

serverConnections

private Map serverConnections

jSeparator2

private JSeparator jSeparator2

jSeparator4

private JSeparator jSeparator4

desktopScrollPane

private JScrollPane desktopScrollPane

serverSelectTree

private JTree serverSelectTree

fileMenu

private JMenu fileMenu

localServerTabPane

private JTabbedPane localServerTabPane

newConfigurationMenuItem

private JMenuItem newConfigurationMenuItem

contentMenuItem

private JMenuItem contentMenuItem

configDocumentPopupMenu

private JPopupMenu configDocumentPopupMenu

serverRefreshMenuItem

private JMenuItem serverRefreshMenuItem

exitMenuItem

private JMenuItem exitMenuItem

saveMenuItem

private JMenuItem saveMenuItem

copyMenuItem

private JMenuItem copyMenuItem

refreshMenuItem

private JMenuItem refreshMenuItem

cutMenuItem

private JMenuItem cutMenuItem

menuBar

private JMenuBar menuBar

configFolderPopupMenu

private JPopupMenu configFolderPopupMenu

configJScrollPane

private JScrollPane configJScrollPane

executeTestJMenuItem

private JMenuItem executeTestJMenuItem

editMenu

private JMenu editMenu

jPanel1

private JPanel jPanel1

namespaceJTree

private JTree namespaceJTree

openComponentMenuItem

private JMenuItem openComponentMenuItem

componentPopupMenu

private JPopupMenu componentPopupMenu

serverConnectHolderPane

private JPanel serverConnectHolderPane

nsCopyMenuItem

private JMenuItem nsCopyMenuItem

testMenu

private JMenu testMenu

jSeparator3

private JSeparator jSeparator3

newDirectoryMenuItem

private JMenuItem newDirectoryMenuItem

loadMBeansMenuItem

private JMenuItem loadMBeansMenuItem

serverSelectPopupMenu

private JPopupMenu serverSelectPopupMenu

newConfigurationSubMenu

private JMenu newConfigurationSubMenu

connectToServerMenuItem

private JMenuItem connectToServerMenuItem

jScrollPane1

private JScrollPane jScrollPane1

reloadConfigMenuItem

private JMenuItem reloadConfigMenuItem

jLabel1

private JLabel jLabel1

componentJScrollPane

private JScrollPane componentJScrollPane

repositoryMenu

private JMenu repositoryMenu

desktopPane

private JDesktopPane desktopPane

jSplitPane2

private JSplitPane jSplitPane2

componentJTree

private JTree componentJTree

nsOpenMenuItem

private JMenuItem nsOpenMenuItem

jSplitPane1

private JSplitPane jSplitPane1

nsDeleteMenuItem

private JMenuItem nsDeleteMenuItem

saveAsMenuItem

private JMenuItem saveAsMenuItem

jPanel2

private JPanel jPanel2

nsPasteMenuItem

private JMenuItem nsPasteMenuItem

pasteMenuItem

private JMenuItem pasteMenuItem

openMenuItem

private JMenuItem openMenuItem

nsCutMenuItem

private JMenuItem nsCutMenuItem

jSeparator1

private JSeparator jSeparator1

windowMenu

private JMenu windowMenu

aboutMenuItem

private JMenuItem aboutMenuItem

helpMenu

private JMenu helpMenu

deleteMenuItem

private JMenuItem deleteMenuItem

serverDisconnectMenuItem

private JMenuItem serverDisconnectMenuItem
Constructor Detail

Configurator

public Configurator()
Creates new form Configurator

Method Detail

setup

private void setup()

tearDown

private void tearDown()

loadConfigurationChoices

private void loadConfigurationChoices()

connectToServer

public void connectToServer(String initialContextFactory,
                            String serverURL,
                            String principle,
                            String credentials)

initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.


serverRefreshMenuItemActionPerformed

private void serverRefreshMenuItemActionPerformed(ActionEvent evt)

namespaceJTreeKeyTyped

private void namespaceJTreeKeyTyped(KeyEvent evt)

serverDisconnectMenuItemActionPerformed

private void serverDisconnectMenuItemActionPerformed(ActionEvent evt)

serverSelectTreeMouseClicked

private void serverSelectTreeMouseClicked(MouseEvent evt)

serverSelectTreeValueChanged

private void serverSelectTreeValueChanged(TreeSelectionEvent evt)

connectToServerMenuItemActionPerformed

private void connectToServerMenuItemActionPerformed(ActionEvent evt)

loadMBeansMenuItemActionPerformed

private void loadMBeansMenuItemActionPerformed(ActionEvent evt)

nsDeleteMenuItemActionPerformed

private void nsDeleteMenuItemActionPerformed(ActionEvent evt)

aboutMenuItemActionPerformed

private void aboutMenuItemActionPerformed(ActionEvent evt)

componentJTreeMouseClicked

private void componentJTreeMouseClicked(MouseEvent evt)

openComponentMenuItemActionPerformed

private void openComponentMenuItemActionPerformed(ActionEvent evt)

newConfigurationMenuItemActionPerformed

private void newConfigurationMenuItemActionPerformed(ActionEvent evt)

executeTestJMenuItemActionPerformed

private void executeTestJMenuItemActionPerformed(ActionEvent evt)

testMenuActionPerformed

private void testMenuActionPerformed(ActionEvent evt)

editMenuActionPerformed

private void editMenuActionPerformed(ActionEvent evt)

fileMenuActionPerformed

private void fileMenuActionPerformed(ActionEvent evt)

helpMenuActionPerformed

private void helpMenuActionPerformed(ActionEvent evt)

repositoryMenuActionPerformed

private void repositoryMenuActionPerformed(ActionEvent evt)

nsOpenMenuItemActionPerformed

private void nsOpenMenuItemActionPerformed(ActionEvent evt)

newDirectoryMenuItemActionPerformed

private void newDirectoryMenuItemActionPerformed(ActionEvent evt)

namespaceJTreeMouseClicked

private void namespaceJTreeMouseClicked(MouseEvent evt)

refreshMenuItemActionPerformed

private void refreshMenuItemActionPerformed(ActionEvent evt)

refreshConfigurations

public void refreshConfigurations()

refreshComponents

public void refreshComponents()

addDirectory

private void addDirectory(DefaultMutableTreeNode node)

exitMenuItemActionPerformed

private void exitMenuItemActionPerformed(ActionEvent evt)

exitForm

private void exitForm(WindowEvent evt)
Exit the Application


main

public static void main(String[] args)
Parameters:
args - the command line arguments


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.