org.gwtbootstrap3.extras.bootbox.client
Class Bootbox

java.lang.Object
  extended by org.gwtbootstrap3.extras.bootbox.client.Bootbox

public class Bootbox
extends Object

Created by kyle on 2013/12/11.


Nested Class Summary
static class Bootbox.Defaults
          Used to provide defaults configurations to Bootbox.
static class Bootbox.Dialog
          Used to provide a Dialog configuration.
 
Constructor Summary
Bootbox()
           
 
Method Summary
static void alert(String msg)
          Displays a message in a modal dialog box.
static void alert(String msg, AlertCallback callback)
          Displays a message in a modal dialog box.
static void confirm(String msg, ConfirmCallback callback)
          Displays a message in a modal dialog box, along with the standard 'OK' and 'Cancel' buttons.
static Bootbox.Defaults createDefaults()
          Creates a Defaults object.
static void dialog(Bootbox.Dialog dialog)
          Displays a completely customisable dialog in a modal dialog box.
static void hideAll()
          Hide all currently active bootbox dialogs.
static void prompt(String msg, PromptCallback callback)
          Displays a request for information in a modal dialog box, along with the standard 'OK' and 'Cancel' buttons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootbox

public Bootbox()
Method Detail

alert

public static void alert(String msg)
Displays a message in a modal dialog box.

Parameters:
msg - the message to be displayed.

alert

public static void alert(String msg,
                         AlertCallback callback)
Displays a message in a modal dialog box. With callback handler.

Parameters:
msg - the message to be displayed.
callback - the callback handler.

confirm

public static void confirm(String msg,
                           ConfirmCallback callback)
Displays a message in a modal dialog box, along with the standard 'OK' and 'Cancel' buttons.

Parameters:
msg - the message to be displayed.
callback - the callback handler.

prompt

public static void prompt(String msg,
                          PromptCallback callback)
Displays a request for information in a modal dialog box, along with the standard 'OK' and 'Cancel' buttons.

Parameters:
msg - the message to be displayed.
callback - the callback handler.

dialog

public static void dialog(Bootbox.Dialog dialog)
Displays a completely customisable dialog in a modal dialog box.

Parameters:
dialog - the dialog configuration.

hideAll

public static void hideAll()
Hide all currently active bootbox dialogs.

Individual dialogs can be closed as per normal Bootstrap dialogs: dialog.modal('hide').


createDefaults

public static Bootbox.Defaults createDefaults()
Creates a Defaults object.



Copyright © 2015. All rights reserved.