public class DialogBox extends Object
Modifier and Type | Field and Description |
---|---|
static Color |
cyanBackground |
static int |
DB_DONT_FIX_MESSAGE |
static int |
DefaultMessageBoxLineWidth |
static Color |
greenButton |
double |
hspaceAfterButtonBar |
double |
hspaceBeforeButtonBar |
static Color |
redButton |
double |
vspaceAfterButtonBarButtons |
double |
vspaceAfterButtonBarLine
The space after the line before the buttons, measured in a fraction of the font size.
|
Constructor and Description |
---|
DialogBox() |
Modifier and Type | Method and Description |
---|---|
static Button |
addButton(Form exe,
ButtonBar bb,
String name,
String icon,
Color c) |
ButtonBar |
addButtonBar(CellPanel f) |
ButtonBar |
addButtonBar(Form f,
boolean inLine) |
ButtonBar[] |
addLeftRightButtonBars(CellPanel f) |
void |
addMadeButtonBars(ButtonBar[] made,
CellPanel f)
This is called by a Form to add pre-made ButtonBar objects to the bottom of the form.
|
ButtonBar |
addYesNoOkCancelButtons(Form f,
ButtonBar bb,
boolean isYesNo,
boolean includeCancel,
String names,
Collection buttons) |
static String |
fixMessage(String msg) |
SectionBar |
getLastSectionBar() |
static Control |
iconize(Control c,
String name,
boolean leaveText,
FontMetrics fm) |
Form |
newMessageBox(int textWidth,
String title,
String htmlMessage,
int whatType) |
static Form |
newMessageBox(String title,
String htmlMessage,
int whatType) |
static Button |
toColorButton(Button b,
Color c) |
public static Color cyanBackground
public static Color greenButton
public static Color redButton
public double vspaceAfterButtonBarLine
public double vspaceAfterButtonBarButtons
public double hspaceBeforeButtonBar
public double hspaceAfterButtonBar
public static int DefaultMessageBoxLineWidth
public static final int DB_DONT_FIX_MESSAGE
public static Control iconize(Control c, String name, boolean leaveText, FontMetrics fm)
public ButtonBar addYesNoOkCancelButtons(Form f, ButtonBar bb, boolean isYesNo, boolean includeCancel, String names, Collection buttons)
public void addMadeButtonBars(ButtonBar[] made, CellPanel f)
made
- the ButtonBar objects made (either 1 or 2).f
- the destination Form.public SectionBar getLastSectionBar()
public Form newMessageBox(int textWidth, String title, String htmlMessage, int whatType)