public abstract class RavenDialog extends JDialog
Dialog.ModalExclusionType, Dialog.ModalityType
Window.Type
Component.BaselineResizeBehavior
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPT_BUTTON
Indicating the ACCEPT button.
|
static int |
ACCEPT_CANCEL_LAYOUT
Indicating that an ACCEPT and a CANCEL BUTTON will be shown.
|
static String |
ACCEPT_LABEL
Accept Button Label (used for Testing)
|
static int |
ACCEPT_OPTION
Return value form class method if ACCEPT is chosen.
|
static int |
CANCEL_BUTTON
Indicating the ACCEPT button.
|
static String |
CANCEL_LABEL
Cancel Button Label (used for Testing)
|
static int |
CANCEL_LAYOUT
Indicating that an CANCEL BUTTON will be shown.
|
static int |
CANCEL_OPTION
Return value form class method if CANCEL is chosen.
|
static int |
CLOSE_BUTTON
Indicating the ACCEPT button.
|
static String |
CLOSE_LABEL
Close Button Label (used for Testing)
|
static int |
CLOSE_LAYOUT
Indicating that an CLOSE BUTTON will be shown.
|
static int |
CLOSE_OPTION
Return value form class method if CLOSE is chosen.
|
static int |
LOAD_BUTTON
Indicating the ACCEPT button.
|
static int |
LOAD_CANCEL_LAYOUT
Indicating that an LOAD and a CANCEL BUTTON will be shown.
|
static String |
LOAD_LABEL
Load Button Label (used for Testing)
|
static int |
LOAD_OPTION
Return value form class method if LOAD is chosen.
|
static int |
NO_BUTTON
Indicating the ACCEPT button.
|
static String |
NO_LABEL
Load Button Label (used for Testing)
|
static int |
NO_OPTION
Return value form class method if NO is chosen.
|
static int |
SAVE_BUTTON
Indicating the ACCEPT button.
|
static int |
SAVE_CANCEL_LAYOUT
Indicating that an SAVE and a CANCEL BUTTON will be shown.
|
static String |
SAVE_LABEL
Save Button Label (used for Testing)
|
static int |
SAVE_OPTION
Return value form class method if SAVE is chosen.
|
static int |
YES_BUTTON
Indicating the ACCEPT button.
|
static String |
YES_LABEL
Load Button Label (used for Testing)
|
static int |
YES_NO_CANCEL_LAYOUT
Indicating that a YES, a NO and a CANCEL BUTTON will be shown.
|
static int |
YES_NO_LAYOUT
Indicating that a YES and a NO BUTTON will be shown.
|
static int |
YES_OPTION
Return value form class method if YES is chosen.
|
DEFAULT_MODALITY_TYPE
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier and Type | Method and Description |
---|---|
void |
setAction(int buttonType,
Action action)
Sets the
action for the specified button. |
void |
setMainPane(JComponent comp)
Sets the dialog's main pane.
|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int ACCEPT_CANCEL_LAYOUT
public static final int CANCEL_LAYOUT
public static final int CLOSE_LAYOUT
public static final int SAVE_CANCEL_LAYOUT
public static final int LOAD_CANCEL_LAYOUT
public static final int YES_NO_LAYOUT
public static final int YES_NO_CANCEL_LAYOUT
public static final int ACCEPT_BUTTON
public static final int CANCEL_BUTTON
public static final int CLOSE_BUTTON
public static final int SAVE_BUTTON
public static final int LOAD_BUTTON
public static final int YES_BUTTON
public static final int NO_BUTTON
public static final int ACCEPT_OPTION
public static final int CANCEL_OPTION
public static final int CLOSE_OPTION
public static final int SAVE_OPTION
public static final int LOAD_OPTION
public static final int YES_OPTION
public static final int NO_OPTION
public static final String ACCEPT_LABEL
public static final String CANCEL_LABEL
public static final String CLOSE_LABEL
public static final String SAVE_LABEL
public static final String LOAD_LABEL
public static final String YES_LABEL
public static final String NO_LABEL
public final void setMainPane(JComponent comp)
comp
- the main pane component for this dialogpublic void setAction(int buttonType, Action action)
action
for the specified button.buttonType
- the type of the buttonaction
- the Action
which is executed when the button is pressed