|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.widgets.client.dialog.ConfirmDialog
public class ConfirmDialog
A simple confirm dialog box
| Constructor Summary | |
|---|---|
ConfirmDialog()
Constructor |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCancelHandler(CancelHandler handler)
Adds a handler for the Cancel button click event |
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<ConfirmDialog> handler)
|
static void |
addDefaultCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<ConfirmDialog> defaultCloseHandler)
Add a default close handler that will be appended to each created object |
static void |
addDefaultOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<ConfirmDialog> defaultOpenHandler)
Add a default open handler that will be appended to each created object |
com.google.gwt.event.shared.HandlerRegistration |
addOkHandler(OkHandler handler)
Adds a handler for the OK button click event |
com.google.gwt.event.shared.HandlerRegistration |
addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<ConfirmDialog> handler)
|
com.google.gwt.user.client.ui.Widget |
asWidget()
|
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
|
String |
getCancelLabel()
|
String |
getDialogTitle()
Get the dialog box title |
String |
getMessage()
Gets the message to be displayed to the user |
String |
getOkLabel()
|
String |
getTitle()
|
void |
hide()
Hides the message dialog |
boolean |
isAnimationEnabled()
|
void |
setAnimationEnabled(boolean animationEnabled)
|
void |
setCancelLabel(String cancelLabel)
|
void |
setDialogTitle(com.google.gwt.safehtml.shared.SafeHtml title)
|
void |
setDialogTitle(String title)
Set the dialog box title |
void |
setHeight(String height)
|
void |
setMessage(com.google.gwt.safehtml.shared.SafeHtml message)
Sets the message to be displayed to the user |
void |
setMessage(String message)
Sets the message to be displayed to the user |
void |
setOkLabel(String okLabel)
|
void |
setStyleName(String styleName)
|
void |
setTitle(String title)
|
void |
setWidth(String width)
|
void |
show()
Show message dilaog. |
static ConfirmDialog |
show(String title,
String message,
OkHandler okHandler,
CancelHandler cancelHandler)
Shows a confirm dialog |
static ConfirmDialog |
show(String title,
String message,
String okLabel,
String cancelLabel,
OkHandler okHandler,
CancelHandler cancelHandler)
Shows a confirm dialog |
static ConfirmDialog |
show(String dialogTitle,
String message,
String okLabel,
String cancelLabel,
OkHandler okHandler,
CancelHandler cancelHandler,
String styleName,
boolean animationEnabled)
Shows a confirm dialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfirmDialog()
| Method Detail |
|---|
public String getDialogTitle()
public void setDialogTitle(com.google.gwt.safehtml.shared.SafeHtml title)
public void setDialogTitle(String title)
title - public boolean isAnimationEnabled()
isAnimationEnabled in interface com.google.gwt.user.client.ui.HasAnimationHasAnimation.isAnimationEnabled()public String getMessage()
public void setMessage(com.google.gwt.safehtml.shared.SafeHtml message)
message - public void setMessage(String message)
message - public com.google.gwt.user.client.ui.Widget asWidget()
asWidget in interface com.google.gwt.user.client.ui.IsWidgetpublic void setStyleName(String styleName)
styleName - public void setWidth(String width)
width - public void setHeight(String height)
height - public void setTitle(String title)
title - public String getTitle()
public void setAnimationEnabled(boolean animationEnabled)
setAnimationEnabled in interface com.google.gwt.user.client.ui.HasAnimationHasAnimation.setAnimationEnabled(boolean)public com.google.gwt.event.shared.HandlerRegistration addOkHandler(OkHandler handler)
addOkHandler in interface HasOkHandlerspublic com.google.gwt.event.shared.HandlerRegistration addCancelHandler(CancelHandler handler)
addCancelHandler in interface HasCancelHandlerspublic void show()
public void hide()
public void setOkLabel(String okLabel)
okLabel - public void setCancelLabel(String cancelLabel)
cancelLabel - public String getOkLabel()
public String getCancelLabel()
public static ConfirmDialog show(String title,
String message,
OkHandler okHandler,
CancelHandler cancelHandler)
title - the text to be displayed as the caption of the message boxmessage - the text to be displayed in the body of the message boxokHandler - a handler for the OK button click eventcancelHandler - a handler for the Cancel button click event
public static ConfirmDialog show(String title,
String message,
String okLabel,
String cancelLabel,
OkHandler okHandler,
CancelHandler cancelHandler)
title - the text to be displayed as the caption of the message boxmessage - the text to be displayed in the body of the message boxokLabel - the text to be displayed in the body of the message boxcancelLabel - the text to be displayed in the body of the message boxokHandler - a handler for the OK button click eventcancelHandler - a handler for the Cancel button click event
public static ConfirmDialog show(String dialogTitle,
String message,
String okLabel,
String cancelLabel,
OkHandler okHandler,
CancelHandler cancelHandler,
String styleName,
boolean animationEnabled)
title - the text to be displayed as the caption of the message boxmessage - the text to be displayed in the body of the message boxokLabel - the text to be displayed in the body of the message boxcancelLabel - the text to be displayed in the body of the message boxokHandler - a handler for the OK button click eventcancelHandler - a handler for the Cancel button click eventstyleName - the name of the CSS class to be applied in the message box elementanimationEnabled - true to enable animations while showing or hiding the message boxpublic void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent in interface com.google.gwt.event.shared.HasHandlerspublic com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<ConfirmDialog> handler)
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<ConfirmDialog>public com.google.gwt.event.shared.HandlerRegistration addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<ConfirmDialog> handler)
addOpenHandler in interface com.google.gwt.event.logical.shared.HasOpenHandlers<ConfirmDialog>public static void addDefaultOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<ConfirmDialog> defaultOpenHandler)
defaultOpenHandler - public static void addDefaultCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<ConfirmDialog> defaultCloseHandler)
defaultCloseHandler -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||