Window
with specialized support for buttons. Defaults to a dialog with an 'ok' button. Code snippet: Dialog d = new Dialog(); d.setHeading("Exit Warning!"); d.addText("Do you wish to save before exiting?"); d.setBodyStyle("fontWeight:bold;padding:13px;"); d.setSize(300, 100); d.setHideOnButtonClick(true); d.setButtons(Dialog.YESNOCANCEL); d.show();The internal buttons can be retrieved from the button bar using their respective ids ('ok', 'cancel', 'yes', 'no', 'cancel') or by index. The method {@link #getButtonBar()} creates the buttons, so any call before thedialog is rendered will cause the buttons to be created based on the {@link #setButtons(String)} value.
|
|
|
|
|
|
|
|
|
|