APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.tools.jconsole

public Class VMPanel

extends JTabbedPane
implements PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.event.*, java.beans.*, java.lang.reflect.*, java.util.*, .List, .Timer, javax.swing.*, javax.swing.plaf.*, com.sun.tools.jconsole.JConsolePlugin, .JConsoleContext

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static Icon
private static Icon
private Rectangle
private static Icon
private static Icon
private boolean
private String
private boolean
private Object
private JOptionPane
private String
private Map<ExceptionSafePlugin, SwingWorker<?, ?>>
private boolean
private int
private JProgressBar
private ProxyClient
private boolean
private static ArrayList<VMPanel.TabInfo>
private long
private Timer
private int
private String
private boolean
private String
private VMInternalFrame
private boolean
Inherited from javax.swing.JTabbedPane:
changeEventchangeListenermodelSCROLL_TAB_LAYOUTtabPlacementWRAP_TAB_LAYOUT

Constructor Summary

AccessConstructor and Description
pack-priv
VMPanel(ProxyClient proxyClient, int updateInterval)

Method Summary

Modifier and TypeMethod and Description
private synchronized void
public void
private void
public void
private void
public void
private void
fireConnectedChange(boolean connected)

public String
public String
private VMInternalFrame
public String
public String
public int
pack-priv ProxyClient
getProxyClient(boolean assertThread)

WARNING NEVER CALL THIS METHOD TO MAKE JMX REQUEST IF assertThread == false.

public ProxyClient
public static VMPanel.TabInfo[]
pack-priv synchronized List<Tab>
public String
getToolTipText(MouseEvent event)

Overrides javax.swing.JTabbedPane.getToolTipText.

Returns the tooltip text for the component determined by the mouse event location.

public int
public String
public String
private synchronized void
insertTab(VMPanel.TabInfo tabInfo, int index)

private Tab
pack-priv boolean
private void
protected void
paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

public void
propertyChange(PropertyChangeEvent ev)

Implements java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

public synchronized void
removeTabAt(int index)

Overrides javax.swing.JTabbedPane.removeTabAt.

Removes the tab at index.

public void
setUI(TabbedPaneUI ui)

Overrides javax.swing.JTabbedPane.setUI.

Sets the UI object which implements the L&F for this component.

private void
private void
pack-priv void
private void
Inherited from javax.swing.JTabbedPane:
addaddaddaddaddaddChangeListeneraddTabaddTabaddTabcreateChangeListenerfireStateChangedgetAccessibleContextgetBackgroundAtgetBoundsAtgetChangeListenersgetComponentAtgetDisabledIconAtgetDisplayedMnemonicIndexAtgetForegroundAtgetIconAtgetMnemonicAtgetModelgetSelectedComponentgetSelectedIndexgetTabComponentAtgetTabCountgetTabLayoutPolicygetTabPlacementgetTabRunCountgetTitleAtgetToolTipTextAtgetUIgetUIClassIDindexAtLocationindexOfComponentindexOfTabindexOfTabindexOfTabComponentinsertTabisEnabledAtparamStringremoveremoveremoveAllremoveChangeListenersetBackgroundAtsetComponentAtsetDisabledIconAtsetDisplayedMnemonicIndexAtsetEnabledAtsetForegroundAtsetIconAtsetMnemonicAtsetModelsetSelectedComponentsetSelectedIndexsetTabComponentAtsetTabLayoutPolicysetTabPlacementsetTitleAtsetToolTipTextAtupdateUI

Field Detail

connectedIcon16back to summary
private static Icon connectedIcon16
connectedIcon24back to summary
private static Icon connectedIcon24
connectedIconBoundsback to summary
private Rectangle connectedIconBounds
disconnectedIcon16back to summary
private static Icon disconnectedIcon16
disconnectedIcon24back to summary
private static Icon disconnectedIcon24
everConnectedback to summary
private boolean everConnected
hostNameback to summary
private String hostName
initialUpdateback to summary
private boolean initialUpdate
lockObjectback to summary
private Object lockObject
optionPaneback to summary
private JOptionPane optionPane
passwordback to summary
private String password
pluginsback to summary
private Map<ExceptionSafePlugin, SwingWorker<?, ?>> plugins
pluginTabsAddedback to summary
private boolean pluginTabsAdded
portback to summary
private int port
progressBarback to summary
private JProgressBar progressBar
proxyClientback to summary
private ProxyClient proxyClient
shouldUseSSLback to summary
private boolean shouldUseSSL
tabInfosback to summary
private static ArrayList<VMPanel.TabInfo> tabInfos
time0back to summary
private long time0
timerback to summary
private Timer timer
updateIntervalback to summary
private int updateInterval
urlback to summary
private String url
userDisconnectedback to summary
private boolean userDisconnected
userNameback to summary
private String userName
vmIFback to summary
private VMInternalFrame vmIF
wasConnectedback to summary
private boolean wasConnected

Constructor Detail

VMPanelback to summary
pack-priv VMPanel(ProxyClient proxyClient, int updateInterval)

Method Detail

addTabback to summary
private synchronized void addTab(VMPanel.TabInfo tabInfo)
cleanUpback to summary
public void cleanUp()
closeOptionPaneback to summary
private void closeOptionPane()
connectback to summary
public void connect()
createPluginTabsback to summary
private void createPluginTabs()
disconnectback to summary
public void disconnect()
fireConnectedChangeback to summary
private void fireConnectedChange(boolean connected)
getConnectionNameback to summary
public String getConnectionName()
getDisplayNameback to summary
public String getDisplayName()
getFrameback to summary
private VMInternalFrame getFrame()
getHostNameback to summary
public String getHostName()
getPasswordback to summary
public String getPassword()
getPortback to summary
public int getPort()
getProxyClientback to summary
pack-priv ProxyClient getProxyClient(boolean assertThread)

WARNING NEVER CALL THIS METHOD TO MAKE JMX REQUEST IF assertThread == false. DISPATCHER THREAD IS NOT ASSERTED. IT IS USED TO MAKE SOME LOCAL MANIPULATIONS.

getProxyClientback to summary
public ProxyClient getProxyClient()
getTabInfosback to summary
public static VMPanel.TabInfo[] getTabInfos()
getTabsback to summary
pack-priv synchronized List<Tab> getTabs()
getToolTipTextback to summary
public String getToolTipText(MouseEvent event)

Overrides javax.swing.JTabbedPane.getToolTipText.

Doc from javax.swing.JTabbedPane.getToolTipText.

Returns the tooltip text for the component determined by the mouse event location.

getUpdateIntervalback to summary
public int getUpdateInterval()
getUrlback to summary
public String getUrl()
getUserNameback to summary
public String getUserName()
insertTabback to summary
private synchronized void insertTab(VMPanel.TabInfo tabInfo, int index)
instantiateback to summary
private Tab instantiate(VMPanel.TabInfo tabInfo)
isConnectedback to summary
pack-priv boolean isConnected()
onConnectingback to summary
private void onConnecting()
paintComponentback to summary
protected void paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent ev)

Implements java.beans.PropertyChangeListener.propertyChange.

Doc from java.beans.PropertyChangeListener.propertyChange.

This method gets called when a bound property is changed.

removeTabAtback to summary
public synchronized void removeTabAt(int index)

Overrides javax.swing.JTabbedPane.removeTabAt.

Doc from javax.swing.JTabbedPane.removeTabAt.

Removes the tab at index. After the component associated with index is removed, its visibility is reset to true to ensure it will be visible if added to other containers.

setUIback to summary
public void setUI(TabbedPaneUI ui)

Overrides javax.swing.JTabbedPane.setUI.

Doc from javax.swing.JTabbedPane.setUI.

Sets the UI object which implements the L&F for this component.

startUpdateTimerback to summary
private void startUpdateTimer()
updateback to summary
private void update()
updateFrameTitleback to summary
pack-priv void updateFrameTitle()
vmPanelDiedback to summary
private void vmPanelDied()
sun.tools.jconsole back to summary

pack-priv Class VMPanel.TabInfo

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv Class<? extends Tab>
pack-priv boolean

Constructor Summary

AccessConstructor and Description
pack-priv
TabInfo(Class<? extends Tab> tabClass, String name, boolean tabVisible)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
pack-priv String name
tabClassback to summary
pack-priv Class<? extends Tab> tabClass
tabVisibleback to summary
pack-priv boolean tabVisible

Constructor Detail

TabInfoback to summary
pack-priv TabInfo(Class<? extends Tab> tabClass, String name, boolean tabVisible)