Package ipsk.swing
Class JDialogPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- ipsk.swing.JDialogPanel
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
- Direct Known Subclasses:
JConsentDialog
,JProgressDialogPanel
,JUpdateManagerConfigDialog
,UpdateDialogUI
public class JDialogPanel extends javax.swing.JPanel implements java.awt.event.ActionListener
A workaround class forJDialog
, which I guess has some layout bugs.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JDialogPanel.Options
-
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
-
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JButton
applyButton
static int
CANCEL_OPTION
protected javax.swing.JButton
cancelButton
static boolean
DEBUG
protected javax.swing.JDialog
dialog
protected javax.swing.JMenuBar
menuBar
static int
OK_CANCEL_OPTION
static int
OK_OPTION
protected javax.swing.JButton
okButton
protected java.awt.Window
owner
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description JDialogPanel()
JDialogPanel(JDialogPanel.Options options)
JDialogPanel(JDialogPanel.Options options, boolean showHelpButton)
JDialogPanel(JDialogPanel.Options options, java.lang.String title)
JDialogPanel(java.lang.String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent arg0)
protected void
applyValues()
javax.swing.JDialog
createDialog(javax.swing.JFrame owner)
javax.swing.JDialog
createDialog(javax.swing.JFrame owner, boolean modal)
javax.swing.JDialog
createDialog(javax.swing.JFrame owner, java.awt.Dialog.ModalityType modalityType)
void
disposeDialog()
protected void
doApply()
protected void
doCancel()
protected void
doOk()
java.awt.Container
getContentPane()
javax.swing.JDialog
getDialog()
java.lang.String
getFrameTitle()
javax.swing.JButton
getHelpButton()
java.util.List<java.awt.Image>
getIconImages()
java.awt.Dimension
getMinimumSize()
java.lang.Object
getValue()
boolean
isResizable()
void
setApplyingEnabled(boolean b)
void
setContentPane(java.awt.Container contentPane)
void
setFrameTitle(java.lang.String frameTitle)
void
setIconImages(java.util.List<java.awt.Image> iconImages)
void
setResizable(boolean resizable)
void
setValue(java.lang.Object value)
java.lang.Object
showDialog(java.awt.Component parent)
java.lang.Object
showDialog(javax.swing.JDialog parent)
java.lang.Object
showDialog(javax.swing.JFrame parent)
java.lang.Object
showDialog(javax.swing.JFrame parent, java.awt.Dialog.ModalityType modalityType)
void
showNonModalDialog(javax.swing.JDialog parent)
void
showNonModalDialog(javax.swing.JFrame parent)
-
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
- 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
-
CANCEL_OPTION
public static final int CANCEL_OPTION
- See Also:
- Constant Field Values
-
okButton
protected javax.swing.JButton okButton
-
applyButton
protected javax.swing.JButton applyButton
-
cancelButton
protected javax.swing.JButton cancelButton
-
dialog
protected javax.swing.JDialog dialog
-
owner
protected java.awt.Window owner
-
menuBar
protected javax.swing.JMenuBar menuBar
-
-
Constructor Detail
-
JDialogPanel
public JDialogPanel()
-
JDialogPanel
public JDialogPanel(JDialogPanel.Options options)
-
JDialogPanel
public JDialogPanel(JDialogPanel.Options options, boolean showHelpButton)
-
JDialogPanel
public JDialogPanel(java.lang.String title)
-
JDialogPanel
public JDialogPanel(JDialogPanel.Options options, java.lang.String title)
-
-
Method Detail
-
getIconImages
public java.util.List<java.awt.Image> getIconImages()
- Returns:
- the iconImages
-
setIconImages
public void setIconImages(java.util.List<java.awt.Image> iconImages)
- Parameters:
iconImages
- the iconImages to set
-
getValue
public java.lang.Object getValue()
-
createDialog
public javax.swing.JDialog createDialog(javax.swing.JFrame owner)
-
createDialog
public javax.swing.JDialog createDialog(javax.swing.JFrame owner, boolean modal)
-
createDialog
public javax.swing.JDialog createDialog(javax.swing.JFrame owner, java.awt.Dialog.ModalityType modalityType)
-
showNonModalDialog
public void showNonModalDialog(javax.swing.JDialog parent)
-
showDialog
public java.lang.Object showDialog(javax.swing.JDialog parent)
-
showNonModalDialog
public void showNonModalDialog(javax.swing.JFrame parent)
-
showDialog
public java.lang.Object showDialog(javax.swing.JFrame parent)
-
showDialog
public java.lang.Object showDialog(javax.swing.JFrame parent, java.awt.Dialog.ModalityType modalityType)
-
showDialog
public java.lang.Object showDialog(java.awt.Component parent)
-
disposeDialog
public void disposeDialog()
-
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Overrides:
getMinimumSize
in classjavax.swing.JComponent
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
doApply
protected void doApply()
-
doCancel
protected void doCancel()
-
doOk
protected void doOk()
-
applyValues
protected void applyValues()
-
setValue
public void setValue(java.lang.Object value)
-
getFrameTitle
public java.lang.String getFrameTitle()
-
setFrameTitle
public void setFrameTitle(java.lang.String frameTitle)
-
getContentPane
public java.awt.Container getContentPane()
-
setContentPane
public void setContentPane(java.awt.Container contentPane)
-
getDialog
public javax.swing.JDialog getDialog()
-
setApplyingEnabled
public void setApplyingEnabled(boolean b)
-
isResizable
public boolean isResizable()
-
setResizable
public void setResizable(boolean resizable)
-
getHelpButton
public javax.swing.JButton getHelpButton()
-
-