public class DialogUtilsBehavior extends WiQueryAbstractBehavior
Dialog
Contains some utilities method to create very lightweight Dialog| Modifier and Type | Class and Description |
|---|---|
static class |
DialogUtilsBehavior.DialogUtilsLanguages
Enumeration of possibles alternatives languages for the Dailog
(Default local : EN)
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.wicket.markup.html.resources.JavascriptResourceReference |
WIQUERY_DIALOG_JS
Constant of wiQuery Dialog resource
|
| Constructor and Description |
|---|
DialogUtilsBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
contribute(WiQueryResourceManager wiQueryResourceManager)
Declares resources (JavaScript and CSS files) to import.
|
JsStatement |
errorDialog(String message)
Method creating an error Dialog
|
Locale |
getLocale() |
JsStatement |
questionDialog(String message)
Method creating a question Dialog
|
JsStatement |
simpleDialog(String title,
String message)
Method creating a simple dialog
|
JsStatement |
statement()
Returns the main
JsStatement used to create the plugin. |
WaitDialogStatements |
waitDialog()
Method creating a waiting dialog
|
JsStatement |
warningDialog(String message)
Method creating a warning Dialog
|
bind, getComponentpublic static final org.apache.wicket.markup.html.resources.JavascriptResourceReference WIQUERY_DIALOG_JS
public void contribute(WiQueryResourceManager wiQueryResourceManager)
contribute in interface IWiQueryPlugincontribute in class WiQueryAbstractBehaviorwiQueryResourceManager - The WiQueryResourceManager instance managing this
component resources.WiQueryAbstractBehavior.contribute(org.odlabs.wiquery.core.commons.WiQueryResourceManager)public JsStatement errorDialog(String message)
message - MessageJsStatementpublic Locale getLocale()
public JsStatement questionDialog(String message)
message - MessageJsStatementpublic JsStatement simpleDialog(String title, String message)
title - Titlemessage - MessageJsStatementpublic JsStatement statement()
JsStatement used to create the plugin.statement in interface IWiQueryPluginstatement in class WiQueryAbstractBehaviorJsStatement corresponding to this component.WiQueryAbstractBehavior.statement()public WaitDialogStatements waitDialog()
WaitDialogStatementspublic JsStatement warningDialog(String message)
message - MessageJsStatementCopyright © 2009-2012. All Rights Reserved.