public class DefaultConfirmDialogFactory extends Object implements ConfirmDialog.Factory
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_CANCEL_CAPTION |
protected static String |
DEFAULT_CAPTION |
protected static String |
DEFAULT_MESSAGE |
protected static String |
DEFAULT_OK_CAPTION |
| Constructor and Description |
|---|
DefaultConfirmDialogFactory() |
| Modifier and Type | Method and Description |
|---|---|
ConfirmDialog |
create(String caption,
String message,
String okCaption,
String cancelCaption,
String notOkCaption) |
protected double[] |
getDialogDimensions(String message,
ConfirmDialog.ContentMode style)
Approximates the dialog dimensions based on its message length.
|
protected static final String DEFAULT_CAPTION
protected static final String DEFAULT_MESSAGE
protected static final String DEFAULT_OK_CAPTION
protected static final String DEFAULT_CANCEL_CAPTION
public ConfirmDialog create(String caption, String message, String okCaption, String cancelCaption, String notOkCaption)
create in interface ConfirmDialog.Factoryprotected double[] getDialogDimensions(String message, ConfirmDialog.ContentMode style)
message - Message stringCopyright © 2015. All Rights Reserved.