|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
skrueger.swing.AtlasDialog
skrueger.swing.CancellableDialogAdapter
skrueger.swing.TranslationAskJDialog
public class TranslationAskJDialog
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
PROPERTY_APPLY_AND_CLOSE
|
static String |
PROPERTY_CANCEL_AND_CLOSE
|
Fields inherited from class skrueger.swing.CancellableDialogAdapter |
---|
cancelled, RESOURCE |
Fields inherited from class skrueger.swing.AtlasDialog |
---|
isDisposed |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TranslationAskJDialog(Component owner)
The TranslationAskJDialog fills its content pane with an
arbitrary number of components. |
|
TranslationAskJDialog(Component owner,
JComponent... translationEditJPanels)
The TranslationAskJDialog fills its content pane with an
arbitrary number of components. |
Method Summary | |
---|---|
void |
cancel()
Called when the dilaog is closed using the cancel button. |
protected JRootPane |
createRootPane()
Since the registerKeyboardAction() method is part of the JComponent class definition, you must define the Escape keystroke and register the keyboard action with a JComponent, not with a JDialog. |
boolean |
isCancelled()
After the modal dialog has been closed, this allows to find out, whether the Component has been canceled. |
boolean |
okClose()
This method is only called when the dialog is closed and not canceled. |
void |
setComponents(JComponent... translationEditJPanels)
The TranslationAskJDialog fills its content pane with an
arbitrary number of components. |
void |
setOptionalButtons(JButton... optionalButtons)
|
Methods inherited from class skrueger.swing.CancellableDialogAdapter |
---|
cancelClose, close, forceClose, getCancelButton, getOkButton |
Methods inherited from class skrueger.swing.AtlasDialog |
---|
dispose |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_CANCEL_AND_CLOSE
public static final String PROPERTY_APPLY_AND_CLOSE
Constructor Detail |
---|
public TranslationAskJDialog(Component owner, JComponent... translationEditJPanels)
TranslationAskJDialog
fills its content pane with an
arbitrary number of components. If these Component
s are
TranslationEditJPanel
s, the JDialog
manages to backup the
values and restore them if the dialog is canceled. Other
JComponent
s are just displayed.
owner
- A component of the GUI that this dialog is related to. If no
Window
is passed, SwingUtil.getParentWindow(owner) is
called.public TranslationAskJDialog(Component owner)
TranslationAskJDialog
fills its content pane with an
arbitrary number of components. If these Component
s are
TranslationEditJPanel
s, the JDialog
manages to backup the
values and restore them if the dialog is canceled. Other
JComponent
s are just displayed.
Method Detail |
---|
protected JRootPane createRootPane()
createRootPane
in class AtlasDialog
public void setComponents(JComponent... translationEditJPanels)
TranslationAskJDialog
fills its content pane with an
arbitrary number of components. If these Component
s are
TranslationEditJPanel
s, the JDialog
manages to backup the
values and restore them if the dialog is canceled. Other
JComponent
s are just displayed.
translationEditJPanels
- Arbitrary list of JComponent
s and
TranslationEditJPanel
s.public void setOptionalButtons(JButton... optionalButtons)
public void cancel()
cancel
in interface Cancellable
cancel
in class CancellableDialogAdapter
public boolean okClose()
okClose
in class CancellableDialogAdapter
public boolean isCancelled()
Component
has been canceled.
isCancelled
in interface CancellableDialog
isCancelled
in class CancellableDialogAdapter
true
if the JDialog
has been canceled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |