swingwtx.swing
Class JOptionPane

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwtx.swing.JComponent
              extended byswingwtx.swing.JPanel
                  extended byswingwtx.swing.JOptionPane
All Implemented Interfaces:
ImageObserver, MenuContainer

public class JOptionPane
extends JPanel


Nested Class Summary
 
Nested classes inherited from class swingwtx.swing.JComponent
JComponent.InternalFrameSelectionListener
 
Field Summary
static int CLOSED_OPTION
           
static int DEFAULT_OPTION
           
static int ERROR_MESSAGE
           
static int INFORMATION_MESSAGE
           
protected static int lastInputDialogReturnIndex
           
protected static java.lang.Object lastInputDialogReturnValue
           
static int NO_OPTION
           
static int OK_CANCEL_OPTION
           
static int OK_OPTION
           
static int QUESTION_MESSAGE
           
static int WARNING_MESSAGE
           
static int YES_NO_OPTION
           
static int YES_OPTION
           
 
Fields inherited from class swingwtx.swing.JPanel
opaque, ppeer
 
Fields inherited from class swingwtx.swing.JComponent
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap
 
Fields inherited from class swingwt.awt.Container
composite, comps, containerListeners, layout, queuedValidateRequest
 
Fields inherited from class swingwt.awt.Component
actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JOptionPane()
           
 
Method Summary
protected static java.lang.String getOptionPaneMessage(java.lang.Object message)
          Handles Swing-style messages, strips HTML and converts String arrays to a single string
static JFrame getRootFrame()
           
static org.eclipse.swt.widgets.Shell getSharedFrame()
          Invisible shell used as the parent for dialogs with a null container.
protected static boolean isJobFinished()
           
protected static void setJobFinished(boolean b)
           
static void setRootFrame(JFrame frame)
           
static int showConfirmDialog(Container parent, java.lang.Object message)
           
static int showConfirmDialog(Container parent, java.lang.Object message, int messageType)
           
static int showConfirmDialog(Container parent, java.lang.Object message, java.lang.String title, int messageType)
           
static int showConfirmDialog(Container parent, java.lang.Object message, java.lang.String title, int buttons, int messageType)
           
static java.lang.String showInputDialog(Container parent, java.lang.Object message)
           
static java.lang.String showInputDialog(Container parent, java.lang.Object message, java.lang.Object initialSelectionValue)
           
static java.lang.String showInputDialog(Container parent, java.lang.Object message, java.lang.String title, int messageType)
           
static java.lang.Object showInputDialog(Container parent, java.lang.Object message, java.lang.String title, int messageType, Icon icon, java.lang.Object[] selectionValues, java.lang.Object initialSelectionValue)
           
static void showMessageDialog(Component parent, java.lang.Object message, java.lang.String title, int messageType)
           
static void showMessageDialog(Container parent, java.lang.Object message)
           
static void showMessageDialog(Container parent, java.lang.Object message, java.lang.String title, int messageType)
          FIXME: Where the fuck is the title?
static int showOptionDialog(Container parent, java.lang.Object message, java.lang.String title, int optionType, int messageType, Icon icon, java.lang.Object[] options, java.lang.Object initialValue)
           
 
Methods inherited from class swingwtx.swing.JPanel
calculatePreferredSize, getHeight, getSize, getWidth, setBorder, setSwingWTParent
 
Methods inherited from class swingwtx.swing.JComponent
add, add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, dispose, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled
 
Methods inherited from class swingwt.awt.Container
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate
 
Methods inherited from class swingwt.awt.Component
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setCachedProperties, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YES_OPTION

public static final int YES_OPTION
See Also:
Constant Field Values

NO_OPTION

public static final int NO_OPTION
See Also:
Constant Field Values

OK_OPTION

public static final int OK_OPTION
See Also:
Constant Field Values

OK_CANCEL_OPTION

public static final int OK_CANCEL_OPTION
See Also:
Constant Field Values

CLOSED_OPTION

public static final int CLOSED_OPTION
See Also:
Constant Field Values

DEFAULT_OPTION

public static final int DEFAULT_OPTION
See Also:
Constant Field Values

YES_NO_OPTION

public static final int YES_NO_OPTION
See Also:
Constant Field Values

WARNING_MESSAGE

public static final int WARNING_MESSAGE
See Also:
Constant Field Values

QUESTION_MESSAGE

public static final int QUESTION_MESSAGE
See Also:
Constant Field Values

INFORMATION_MESSAGE

public static final int INFORMATION_MESSAGE
See Also:
Constant Field Values

ERROR_MESSAGE

public static final int ERROR_MESSAGE
See Also:
Constant Field Values

lastInputDialogReturnValue

protected static java.lang.Object lastInputDialogReturnValue

lastInputDialogReturnIndex

protected static int lastInputDialogReturnIndex
Constructor Detail

JOptionPane

public JOptionPane()
Method Detail

setRootFrame

public static void setRootFrame(JFrame frame)

getRootFrame

public static JFrame getRootFrame()

showConfirmDialog

public static int showConfirmDialog(Container parent,
                                    java.lang.Object message)

showConfirmDialog

public static int showConfirmDialog(Container parent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int buttons,
                                    int messageType)

showConfirmDialog

public static int showConfirmDialog(Container parent,
                                    java.lang.Object message,
                                    java.lang.String title,
                                    int messageType)

showConfirmDialog

public static int showConfirmDialog(Container parent,
                                    java.lang.Object message,
                                    int messageType)

showMessageDialog

public static void showMessageDialog(Container parent,
                                     java.lang.Object message)

showMessageDialog

public static void showMessageDialog(Component parent,
                                     java.lang.Object message,
                                     java.lang.String title,
                                     int messageType)

showMessageDialog

public static void showMessageDialog(Container parent,
                                     java.lang.Object message,
                                     java.lang.String title,
                                     int messageType)
FIXME: Where the fuck is the title?


showInputDialog

public static java.lang.String showInputDialog(Container parent,
                                               java.lang.Object message)

showInputDialog

public static java.lang.String showInputDialog(Container parent,
                                               java.lang.Object message,
                                               java.lang.Object initialSelectionValue)

showInputDialog

public static java.lang.String showInputDialog(Container parent,
                                               java.lang.Object message,
                                               java.lang.String title,
                                               int messageType)

showInputDialog

public static java.lang.Object showInputDialog(Container parent,
                                               java.lang.Object message,
                                               java.lang.String title,
                                               int messageType,
                                               Icon icon,
                                               java.lang.Object[] selectionValues,
                                               java.lang.Object initialSelectionValue)

showOptionDialog

public static int showOptionDialog(Container parent,
                                   java.lang.Object message,
                                   java.lang.String title,
                                   int optionType,
                                   int messageType,
                                   Icon icon,
                                   java.lang.Object[] options,
                                   java.lang.Object initialValue)

getOptionPaneMessage

protected static java.lang.String getOptionPaneMessage(java.lang.Object message)
Handles Swing-style messages, strips HTML and converts String arrays to a single string


isJobFinished

protected static boolean isJobFinished()

setJobFinished

protected static void setJobFinished(boolean b)

getSharedFrame

public static org.eclipse.swt.widgets.Shell getSharedFrame()
Invisible shell used as the parent for dialogs with a null container.