org.apache.fop.viewer
Class MessagesDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JOptionPane
                          |
                          +--org.apache.fop.viewer.MessagesDialog

public class MessagesDialog
extends JOptionPane

Die Klasse MessagesDialog dient der Anzeige von Meldungen. Die Klasse erweitert JOptionPane um die Möglichkeit, auf Knopfdruck eine Detailanzeige einzublenden, in der z.B. bei Fehlern der StackTrace ausgegeben werden kann.

Author:
Juergen.Verwohlt@jCatalog.com
Version: 1.0 09.06.99

Inner classes inherited from class javax.swing.JOptionPane
JOptionPane.AccessibleJOptionPane

Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent

Inner classes inherited from class java.awt.Container
Container.AccessibleAWTContainer

Inner classes inherited from class java.awt.Component
Component.AccessibleAWTComponent

Field Summary
 (package private) static StringCANCEL_OPTION
           
 (package private) static String[]defaultDetailOption
           
 (package private) static String[]defaultOption
           
 (package private) static StringDETAIL_OPTION
           
 (package private) static StringNO_OPTION
           
 (package private) static StringOK_OPTION
           
 (package private) static String[]okCancelDetailOption
           
 (package private) static String[]okCancelOption
           
 (package private) static Translatorres
           
 (package private) static StringYES_OPTION
           
 (package private) static String[]yesNoCancelDetailOption
           
 (package private) static String[]yesNoCancelOption
           
 (package private) static String[]yesNoDetailOption
           
 (package private) static String[]yesNoOption
           

Fields inherited from class javax.swing.JOptionPane
UNINITIALIZED_VALUE, DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION, OK_CANCEL_OPTION, CLOSED_OPTION, ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, PLAIN_MESSAGE, ICON_PROPERTY, MESSAGE_PROPERTY, VALUE_PROPERTY, OPTIONS_PROPERTY, INITIAL_VALUE_PROPERTY, MESSAGE_TYPE_PROPERTY, OPTION_TYPE_PROPERTY, SELECTION_VALUES_PROPERTY, INITIAL_SELECTION_VALUE_PROPERTY, INPUT_VALUE_PROPERTY, WANTS_INPUT_PROPERTY

Fields inherited from class javax.swing.JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
MessagesDialog(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)
           

Method Summary
 StringgetDetailInformation()
           
 JDialoggetDialog()
           
 voidsetDetailInformation(String aValue)
           
 voidsetDialog(JDialog aValue)
           
 static voidsetTranslator(Translator aRes)
           
 voidsetValue(Object aValue)
           
 static intshowConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
           
 static intshowDetailDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, String newDetailInformation)
          Öffnet ein Dialogfenster, bei dem zusätzlich zu den spez.

Methods inherited from class javax.swing.JOptionPane
showInputDialog, showInputDialog, showInputDialog, showInputDialog, showMessageDialog, showMessageDialog, showMessageDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showOptionDialog, createDialog, showInternalMessageDialog, showInternalMessageDialog, showInternalMessageDialog, showInternalConfirmDialog, showInternalConfirmDialog, showInternalConfirmDialog, showInternalConfirmDialog, showInternalOptionDialog, showInternalInputDialog, showInternalInputDialog, showInternalInputDialog, createInternalFrame, getFrameForComponent, getDesktopPaneForComponent, setRootFrame, getRootFrame, setUI, getUI, updateUI, getUIClassID, setMessage, getMessage, setIcon, getIcon, getValue, setOptions, getOptions, setInitialValue, getInitialValue, setMessageType, getMessageType, setOptionType, getOptionType, setSelectionValues, getSelectionValues, setInitialSelectionValue, getInitialSelectionValue, setInputValue, getInputValue, getMaxCharactersPerLineCount, setWantsInput, getWantsInput, selectInitialValue, getAccessibleContext

Methods inherited from class javax.swing.JComponent
update, paint, printAll, print, isPaintingTile, isFocusCycleRoot, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, requestFocus, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setPreferredSize, getPreferredSize, setMaximumSize, getMaximumSize, setMinimumSize, getMinimumSize, isMinimumSizeSet, isPreferredSizeSet, isMaximumSizeSet, contains, setBorder, getBorder, getInsets, getInsets, getAlignmentY, setAlignmentY, getAlignmentX, setAlignmentX, setInputVerifier, getInputVerifier, getGraphics, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, resetKeyboardActions, setInputMap, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, setVisible, hide, setEnabled, setForeground, setBackground, setFont, isFocusTraversable, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, enable, disable, getClientProperty, putClientProperty, isLightweightComponent, reshape, getBounds, getSize, getLocation, getX, getY, getWidth, getHeight, hasFocus, isOpaque, setOpaque, computeVisibleRect, getVisibleRect, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, addVetoableChangeListener, removeVetoableChangeListener, getTopLevelAncestor, addAncestorListener, removeAncestorListener, getListeners, addNotify, removeNotify, repaint, repaint, revalidate, isValidateRoot, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, isDoubleBuffered, getRootPane

Methods inherited from class java.awt.Container
getComponentCount, countComponents, getComponent, getComponents, insets, add, add, add, add, add, remove, remove, removeAll, getLayout, setLayout, doLayout, layout, invalidate, validate, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, deliverEvent, getComponentAt, locate, getComponentAt, findComponentAt, findComponentAt, isAncestorOf, list, list

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, enable, enableInputMethods, show, show, getForeground, getBackground, getFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, setBounds, isLightweight, getFontMetrics, setCursor, getCursor, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, inside, contains, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, getInputContext, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, gotFocus, lostFocus, transferFocus, nextFocus, add, remove, toString, list, list, list, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait

Field Detail

CANCEL_OPTION

static String CANCEL_OPTION

defaultDetailOption

static String[] defaultDetailOption

defaultOption

static String[] defaultOption

DETAIL_OPTION

static String DETAIL_OPTION

NO_OPTION

static String NO_OPTION

OK_OPTION

static String OK_OPTION

okCancelDetailOption

static String[] okCancelDetailOption

okCancelOption

static String[] okCancelOption

res

static Translator res

YES_OPTION

static String YES_OPTION

yesNoCancelDetailOption

static String[] yesNoCancelDetailOption

yesNoCancelOption

static String[] yesNoCancelOption

yesNoDetailOption

static String[] yesNoDetailOption

yesNoOption

static String[] yesNoOption
Constructor Detail

MessagesDialog

public MessagesDialog(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)
Method Detail

getDetailInformation

public String getDetailInformation()

getDialog

public JDialog getDialog()

setDetailInformation

public void setDetailInformation(String aValue)

setDialog

public void setDialog(JDialog aValue)

setTranslator

public static void setTranslator(Translator aRes)

setValue

public void setValue(Object aValue)

showConfirmDialog

public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)

showDetailDialog

public static int showDetailDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, String newDetailInformation)
Öffnet ein Dialogfenster, bei dem zusätzlich zu den spez. Buttons noch ein 'Detail'-Button erscheint. Wird dieser Knopf vom Benutzer betätigt, erscheint die übergebene Detailinformation in einem scrollbaren Bereich des Dialogs.

Association Links

to Class org.apache.fop.viewer.Translator

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class javax.swing.JDialog