org.sape.carbon.services.console
Class ServerConnectionPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.sape.carbon.services.console.ServerConnectionPane
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
Mx4jServerConnection, WebLogicServerConnection

public abstract class ServerConnectionPane
extends JPanel

Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.3 $($Author: ghinkl $ / $Date: 2003/04/04 01:11:49 $)
Author:
Greg Hinkle, January 2002
See Also:
Serialized Form

Nested Class Summary
protected static class ServerConnectionPane.MBeanLabel
           
 
Field Summary
private  JScrollPane componentScrollPane
           
protected  JTree componentTree
           
protected  JDesktopPane desktop
           
protected  String initialContextFactory
           
private  JLabel jLabel1
           
private  JLabel jLabel2
           
private  JPanel jPanel1
           
private  JTabbedPane jTabbedPane1
           
protected  Set openMBeanFrames
           
protected  TreeSet orderedMBeans
           
private  JButton searchButton
           
private  JTextField searchField
           
private  JPanel searchHeaderPanel
           
private  JList searchJList
           
private  JPanel searchPanel
           
private  JScrollPane searchScrollPane
           
protected  String serverURL
           
protected  JLabel serverURLLabel
           
 
Fields inherited from class javax.swing.JPanel
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ServerConnectionPane(JDesktopPane desktop, String initialContextFactory, String serverURL)
           
 
Method Summary
protected  void addMBean(DefaultMutableTreeNode base, javax.management.ObjectName objectName)
           
private  void componentTreeMouseClicked(MouseEvent evt)
           
 void disconnect()
           
private  DefaultMutableTreeNode findChild(DefaultMutableTreeNode parent, Object childUserObject)
           
protected abstract  javax.management.MBeanServer getMBeanServer()
           
private  void initComponents()
          This method is called from within the constructor to initialize the form.
protected  void openMBeanFrame(javax.management.ObjectName objectName)
           
protected  Set queryMBeans(javax.management.ObjectName objectName, javax.management.QueryExp query)
           
 void refreshMBeans()
           
private  void searchButtonActionPerformed(ActionEvent evt)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

desktop

protected JDesktopPane desktop

orderedMBeans

protected TreeSet orderedMBeans

initialContextFactory

protected String initialContextFactory

serverURL

protected String serverURL

openMBeanFrames

protected Set openMBeanFrames

searchPanel

private JPanel searchPanel

componentTree

protected JTree componentTree

searchButton

private JButton searchButton

jPanel1

private JPanel jPanel1

searchField

private JTextField searchField

componentScrollPane

private JScrollPane componentScrollPane

searchHeaderPanel

private JPanel searchHeaderPanel

serverURLLabel

protected JLabel serverURLLabel

searchJList

private JList searchJList

searchScrollPane

private JScrollPane searchScrollPane

jTabbedPane1

private JTabbedPane jTabbedPane1

jLabel2

private JLabel jLabel2

jLabel1

private JLabel jLabel1
Constructor Detail

ServerConnectionPane

public ServerConnectionPane(JDesktopPane desktop,
                            String initialContextFactory,
                            String serverURL)
Method Detail

getMBeanServer

protected abstract javax.management.MBeanServer getMBeanServer()

disconnect

public void disconnect()

refreshMBeans

public void refreshMBeans()

addMBean

protected void addMBean(DefaultMutableTreeNode base,
                        javax.management.ObjectName objectName)

findChild

private DefaultMutableTreeNode findChild(DefaultMutableTreeNode parent,
                                         Object childUserObject)

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.


searchButtonActionPerformed

private void searchButtonActionPerformed(ActionEvent evt)

queryMBeans

protected Set queryMBeans(javax.management.ObjectName objectName,
                          javax.management.QueryExp query)

componentTreeMouseClicked

private void componentTreeMouseClicked(MouseEvent evt)

openMBeanFrame

protected void openMBeanFrame(javax.management.ObjectName objectName)


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.