|
|||||||||
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.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 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 | |
---|---|
protected void |
backup()
Stores the original values of all TranslationEditJPanel s so
cancel works. |
protected void |
cancel()
Called when the dilaog is closed using the cancel button. |
protected boolean |
checkValidInputs()
|
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 dialog has been canceled. |
protected void |
okClose()
This method is only called when the dialog is closed and not cancelled. |
protected void |
restore()
Used to restore all the values when cancel has been pressed. |
void |
setButtons(JButton... optionalButtons)
|
void |
setComponents(JComponent... translationEditJPanels)
The TranslationAskJDialog fills its content pane with an
arbitrary number of components. |
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 JDialog
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.protected void backup()
TranslationEditJPanel
s so
cancel works.
public void setButtons(JButton... optionalButtons)
protected void cancel()
protected void restore()
protected void okClose()
protected boolean checkValidInputs()
true
if none of the translations contains illegal
characters.public boolean isCancelled()
true
if the JDialog
has been canceled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |