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

public final Class SheetDialog

extends Object
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.event.*, java.beans.*, javax.swing.*, javax.swing.border.*, javax.swing.text.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private static class

Field Summary

Modifier and TypeField and Description
private static Rectangle
private static Rectangle
private static Insets
private static Rectangle

Constructor Summary

AccessConstructor and Description
private
SheetDialog()

Don't let anyone instantiate this class

Method Summary

Modifier and TypeMethod and Description
private static Object
fixWrapping(Object message, final int maxWidth)

pack-priv static JOptionPane
showOptionDialog(final VMPanel vmPanel, Object message, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iconRback to summary
private static Rectangle iconR
textRback to summary
private static Rectangle textR
viewInsetsback to summary
private static Insets viewInsets
viewRback to summary
private static Rectangle viewR

Constructor Detail

SheetDialogback to summary
private SheetDialog()

Don't let anyone instantiate this class

Method Detail

fixWrappingback to summary
private static Object fixWrapping(Object message, final int maxWidth)
showOptionDialogback to summary
pack-priv static JOptionPane showOptionDialog(final VMPanel vmPanel, Object message, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
sun.tools.jconsole back to summary

pack-priv Class SheetDialog.SheetOptionPane

extends JOptionPane
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static Color
private static Composite
Inherited from javax.swing.JOptionPane:
CANCEL_OPTIONCLOSED_OPTIONDEFAULT_OPTIONERROR_MESSAGEiconICON_PROPERTYINFORMATION_MESSAGEINITIAL_SELECTION_VALUE_PROPERTYINITIAL_VALUE_PROPERTYinitialSelectionValueinitialValueINPUT_VALUE_PROPERTYinputValuemessageMESSAGE_PROPERTYMESSAGE_TYPE_PROPERTYmessageTypeNO_OPTIONOK_CANCEL_OPTIONOK_OPTIONOPTION_TYPE_PROPERTYoptionsOPTIONS_PROPERTYoptionTypePLAIN_MESSAGEQUESTION_MESSAGESELECTION_VALUES_PROPERTYselectionValuesUNINITIALIZED_VALUEvalueVALUE_PROPERTYWANTS_INPUT_PROPERTYwantsInputWARNING_MESSAGEYES_NO_CANCEL_OPTIONYES_NO_OPTIONYES_OPTION

Constructor Summary

AccessConstructor and Description
pack-priv
SheetOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)

Method Summary

Modifier and TypeMethod and Description
public void
paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Invoked by Swing to draw components.

public void
setVisible(boolean visible)

Overrides javax.swing.JComponent.setVisible.

Makes the component visible or invisible.

Inherited from javax.swing.JOptionPane:
createDialogcreateDialogcreateInternalFramegetAccessibleContextgetDesktopPaneForComponentgetFrameForComponentgetIcongetInitialSelectionValuegetInitialValuegetInputValuegetMaxCharactersPerLineCountgetMessagegetMessageTypegetOptionsgetOptionTypegetRootFramegetSelectionValuesgetUIgetUIClassIDgetValuegetWantsInputparamStringselectInitialValuesetIconsetInitialSelectionValuesetInitialValuesetInputValuesetMessagesetMessageTypesetOptionssetOptionTypesetRootFramesetSelectionValuessetUIsetValuesetWantsInputshowConfirmDialogshowConfirmDialogshowConfirmDialogshowConfirmDialogshowInputDialogshowInputDialogshowInputDialogshowInputDialogshowInputDialogshowInputDialogshowInternalConfirmDialogshowInternalConfirmDialogshowInternalConfirmDialogshowInternalConfirmDialogshowInternalInputDialogshowInternalInputDialogshowInternalInputDialogshowInternalMessageDialogshowInternalMessageDialogshowInternalMessageDialogshowInternalOptionDialogshowMessageDialogshowMessageDialogshowMessageDialogshowOptionDialogupdateUI

Field Detail

bgColorback to summary
private static Color bgColor
compback to summary
private static Composite comp

Constructor Detail

SheetOptionPaneback to summary
pack-priv SheetOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)

Method Detail

paintback to summary
public void paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Doc from javax.swing.JComponent.paint.

Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

setVisibleback to summary
public void setVisible(boolean visible)

Overrides javax.swing.JComponent.setVisible.

Doc from javax.swing.JComponent.setVisible.

Makes the component visible or invisible. Overrides Component.setVisible.

sun.tools.jconsole back to summary

private Class SheetDialog.SlideAndFadeGlassPane

extends JPanel
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv SheetDialog.SheetOptionPane
pack-priv boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
public void
public void
paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Invoked by Swing to draw components.

public void
setGrayLevel(int gray)

public void
Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

fadeback to summary
pack-priv int fade
optionPaneback to summary
pack-priv SheetDialog.SheetOptionPane optionPane
slideInback to summary
pack-priv boolean slideIn

Constructor Detail

SlideAndFadeGlassPaneback to summary
pack-priv SlideAndFadeGlassPane()

Method Detail

doSlideback to summary
private void doSlide()
hideback to summary
public void hide(SheetDialog.SheetOptionPane optionPane)
paintback to summary
public void paint(Graphics g)

Overrides javax.swing.JComponent.paint.

Doc from javax.swing.JComponent.paint.

Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

setGrayLevelback to summary
public void setGrayLevel(int gray)
showback to summary
public void show(SheetDialog.SheetOptionPane optionPane)