public class StandardDialog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.awt.Cursor |
defaultCursor |
protected static java.awt.Cursor |
waitCursor |
Constructor and Description |
---|
StandardDialog() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deletionConfirmed(java.awt.Frame ownerFrame) |
static boolean |
deletionConfirmed(java.awt.Frame ownerFrame,
java.lang.String toDelete)
Ask the user whether he is sure to delete the named item
|
static boolean |
deletionConfirmed(java.awt.Frame ownerFrame,
java.lang.String[] toDelete)
Ask the user whether he is sure to delete the named items
|
static boolean |
generalConfirme(java.awt.Frame ownerFrame,
java.lang.String[] presentText) |
static boolean |
generalConfirme(java.awt.Frame ownerFrame,
java.lang.String title,
java.lang.String[] presentText) |
static boolean |
generalConfirme(java.awt.Frame ownerFrame,
java.lang.String title,
java.util.Vector<java.lang.String> presentText)
Presents a text to confirm and returns user's decision.
|
static boolean |
generalConfirme(java.awt.Frame ownerFrame,
java.lang.String title,
java.util.Vector<java.lang.String> presentText,
java.lang.String specialOKLabel)
Presents a text to confirm and returns user's decision.
|
static boolean |
generalConfirme(java.awt.Frame ownerFrame,
java.util.Vector<java.lang.String> presentText)
Presents a text to confirm and returns user's decision.
|
static java.lang.String |
getStringInput(java.awt.Frame ownerFrame,
java.lang.String title) |
static java.lang.String |
getStringInput(java.awt.Frame ownerFrame,
java.lang.String title,
java.lang.String defaultText) |
static java.lang.String |
getStringInputBig(java.awt.Frame ownerFrame,
java.lang.String title,
java.lang.String defaultText) |
protected static java.lang.String |
getTranslation(java.awt.Frame ownerFrame,
java.lang.String resourceKey)
Returns a text in the corresponding language according to the locale specific resource bundle of the package.
|
static boolean |
handle(java.awt.Frame ownerFrame,
ConversationMatter matter) |
static java.awt.Frame |
optimize(java.awt.Frame ownerFrame) |
static void |
presentText(java.awt.Frame ownerFrame,
java.lang.String[] presentText) |
static void |
presentText(java.awt.Frame ownerFrame,
java.lang.String[] presentText,
ImageResource imageResource) |
static void |
presentText(java.awt.Frame ownerFrame,
java.lang.String[] presentText,
java.lang.String title) |
static void |
presentText(java.awt.Frame ownerFrame,
java.lang.String[] presentText,
java.lang.String title,
java.awt.Font font,
ImageResource imageResource) |
static void |
presentText(java.awt.Frame ownerFrame,
java.lang.String[] presentText,
java.lang.String title,
ImageResource imageResource) |
static void |
presentText(java.awt.Frame ownerFrame,
java.util.Vector<java.lang.String> presentText,
java.lang.String title) |
static void |
presentText(java.awt.Frame ownerFrame,
java.util.Vector<java.lang.String> presentText,
java.lang.String title,
java.awt.Font font) |
static int |
saveCancelReturnDecision(java.awt.Frame ownerFrame)
Returns user's decision whether input should be saved, canceled or whether he wants to return to input form.
|
protected static java.awt.Cursor defaultCursor
protected static java.awt.Cursor waitCursor
public static boolean deletionConfirmed(java.awt.Frame ownerFrame)
public static boolean deletionConfirmed(java.awt.Frame ownerFrame, java.lang.String toDelete)
ownerFrame
- the frame which owns the dialogtoDelete
- public static boolean deletionConfirmed(java.awt.Frame ownerFrame, java.lang.String[] toDelete)
ownerFrame
- the frame which owns the dialogtoDelete
- public static int saveCancelReturnDecision(java.awt.Frame ownerFrame)
ownerFrame
- the frame which owns the dialogpublic static boolean handle(java.awt.Frame ownerFrame, ConversationMatter matter)
public static boolean generalConfirme(java.awt.Frame ownerFrame, java.lang.String[] presentText)
public static boolean generalConfirme(java.awt.Frame ownerFrame, java.util.Vector<java.lang.String> presentText)
ownerFrame
- the frame which owns the dialogpresentText
- the text to present, each item of the vector means one linepublic static boolean generalConfirme(java.awt.Frame ownerFrame, java.lang.String title, java.util.Vector<java.lang.String> presentText)
ownerFrame
- the frame which owns the dialogtitle
- the window titlepresentText
- the text to present, each item of the vector means one linepublic static boolean generalConfirme(java.awt.Frame ownerFrame, java.lang.String title, java.util.Vector<java.lang.String> presentText, java.lang.String specialOKLabel)
ownerFrame
- the frame which owns the dialogtitle
- the window titlepresentText
- the text to present, each item of the vector means one linespecialOKLabel
- a special OK button label (more than just OK)public static boolean generalConfirme(java.awt.Frame ownerFrame, java.lang.String title, java.lang.String[] presentText)
ownerFrame
- the frame which owns the dialogtitle
- the window titlepresentText
- public static void presentText(java.awt.Frame ownerFrame, java.lang.String[] presentText)
public static void presentText(java.awt.Frame ownerFrame, java.lang.String[] presentText, ImageResource imageResource)
public static void presentText(java.awt.Frame ownerFrame, java.lang.String[] presentText, java.lang.String title)
public static void presentText(java.awt.Frame ownerFrame, java.lang.String[] presentText, java.lang.String title, ImageResource imageResource)
public static void presentText(java.awt.Frame ownerFrame, java.lang.String[] presentText, java.lang.String title, java.awt.Font font, ImageResource imageResource)
public static void presentText(java.awt.Frame ownerFrame, java.util.Vector<java.lang.String> presentText, java.lang.String title)
public static void presentText(java.awt.Frame ownerFrame, java.util.Vector<java.lang.String> presentText, java.lang.String title, java.awt.Font font)
public static java.lang.String getStringInput(java.awt.Frame ownerFrame, java.lang.String title)
public static java.lang.String getStringInput(java.awt.Frame ownerFrame, java.lang.String title, java.lang.String defaultText)
public static java.lang.String getStringInputBig(java.awt.Frame ownerFrame, java.lang.String title, java.lang.String defaultText)
public static java.awt.Frame optimize(java.awt.Frame ownerFrame)
protected static java.lang.String getTranslation(java.awt.Frame ownerFrame, java.lang.String resourceKey)
resourceKey
- the key of the resource to retrieveCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de