public final class DialogLayout extends Object
Ein einfaches Dialog-Layout für Meldungsfenster:
1. 2. 3. 4. 5.
+------+----------+-------+-------------------+------+
1. ! Rand ! ! ! ! Rand !
+------+----------+-------+-------------------+------+
2. ! ! Icon ! ! Meldungstext ! !
+------+----------+-------+-------------------+------+
3. ! Line-Separator !
+------+----------+-------+-------------------+------+
4. ! Die Button Leiste (mittig) !
+------+----------+-------+-------------------+------+
5. ! Rand ! ! ! ! Rand !
+------+----------+-------+-------------------+------+
Ein Fehlerfenster mit Exception:
1. 2. 3. 4. 5.
+------+----------+-------+-------------------+------+
1. ! Rand ! ! ! ! Rand !
+------+----------+-------+-------------------+------+
2. ! ! Icon ! ! Meldungstext ! !
+------+----------+-------+-------------------+------+
3. ! Line-Separator !
+------+----------+-------+-------------------+------+
4. ! Die Button Leiste (mittig) !
+------+----------+-------+-------------------+------+
5. ! ! Exception ! !
+------+----------+-------+-------------------+------+
6. ! Rand ! ! ! ! Rand !
+------+----------+-------+-------------------+------+
Ein Dialog mit Header, Body und Buttonleiste.
1. 2. 3.
+------+--------------------------------------+------+
1. ! Rand ! Rand !
+------+--------------------------------------+------+
2. ! Header !
+------+--------------------------------------+------+
3. ! ! Body ! !
+------+--------------------------------------+------+
4. ! Line-Separator !
+------+--------------------------------------+------+
5. ! Die Button Leiste (mittig) !
+------+--------------------------------------+------+
+------+----------+-------+-------------------+------+
5. ! Line-Separator !
| Modifier and Type | Field and Description |
|---|---|
static String |
DIALOG_STYLE_HEADER
Document Style 'header'.
|
static String |
DIALOG_STYLE_PARAGRAPH
Document Style 'paragraph'.
|
static String |
DIALOG_STYLE_PARAGRAPH_1
Document Style 'paragraph'.
|
static String |
DIALOG_STYLE_REGULAR
Document Style 'regular'.
|
static String |
WINDOWS_FONT_TAHOMA
Name des Windows Zeichensatzes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DialogLayout()
Utils werden nicht instanziert.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addStyle(JTextPane textPane)
Erstellt den 'Style' für ein
JTextPane. |
static com.jgoodies.forms.layout.FormLayout |
createCommonDialogLayout()
Liefert ein
FormLayout für einen Standarddialog. |
static com.jgoodies.forms.layout.FormLayout |
createCommonDialogLayout(String minDialogWidth)
Liefert ein
FormLayout für einen Standarddialog. |
static com.jgoodies.forms.layout.FormLayout |
createCommonDialogLayout(String minDialogWidth,
String minDialogHeight)
Liefert ein
FormLayout für einen Standarddialog. |
static com.jgoodies.forms.layout.FormLayout |
createDetailMessageDialogLayout()
Liefert ein
FormLayout für einen Dialog mit Meldungstext,
ein oder mehr Buttons und einem optionalen Detailtext. |
static com.jgoodies.forms.layout.FormLayout |
createMessageDialogLayout()
Liefert ein
FormLayout für einen Dialog mit Meldungstext
und ein oder mehr Buttons. |
public static final String WINDOWS_FONT_TAHOMA
public static final String DIALOG_STYLE_REGULAR
public static final String DIALOG_STYLE_HEADER
public static final String DIALOG_STYLE_PARAGRAPH
public static final String DIALOG_STYLE_PARAGRAPH_1
public static com.jgoodies.forms.layout.FormLayout createCommonDialogLayout()
FormLayout für einen Standarddialog.FormLayout.public static com.jgoodies.forms.layout.FormLayout createCommonDialogLayout(String minDialogWidth)
FormLayout für einen Standarddialog.minDialogWidth - Die minimale breite eines Dialogs. Die Angabe
erfolgt in der JGoodies Notation. Z.B.: '200dlu' oder '200px'.FormLayout.public static com.jgoodies.forms.layout.FormLayout createCommonDialogLayout(String minDialogWidth, String minDialogHeight)
FormLayout für einen Standarddialog.minDialogWidth - Die minimale breite eines Dialogs. Die Angabe
erfolgt in der JGoodies Notation. Z.B.: '200dlu' oder '200px'.minDialogHeight - Die minimale Höhe für die Center-Component
eines Dialogs.FormLayout.public static com.jgoodies.forms.layout.FormLayout createMessageDialogLayout()
FormLayout für einen Dialog mit Meldungstext
und ein oder mehr Buttons.FormLayout.public static com.jgoodies.forms.layout.FormLayout createDetailMessageDialogLayout()
FormLayout für einen Dialog mit Meldungstext,
ein oder mehr Buttons und einem optionalen Detailtext.FormLayout.public static void addStyle(JTextPane textPane)
JTextPane.textPane - Ein JTextPane.Copyright © 2014–2015. All rights reserved.