Class LD
java.lang.Object
com.logicaldoc.gui.common.client.util.LD
This class contains useful methods for objects visualization.
- Since:
- 6.1
- Author:
- Matteo Caruso - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidShow a dialog to confirm a operationstatic voidaskForDocumentPassword(String title, String message, Integer width, com.smartgwt.client.util.ValueCallback callback) static voidaskForString(String title, String message, String defaultValue, com.smartgwt.client.util.ValueCallback callback) static voidaskForStringMandatory(String title, String message, String defaultValue, com.smartgwt.client.util.ValueCallback callback) static voidaskForValue(String title, String message, String defaultValue, com.smartgwt.client.util.ValueCallback callback) static voidaskForValue(String title, String message, String defaultValue, com.smartgwt.client.widgets.form.fields.FormItem item, com.smartgwt.client.util.ValueCallback callback) static voidaskForValue(String title, String message, String defaultValue, com.smartgwt.client.widgets.form.fields.FormItem item, Integer width, com.smartgwt.client.util.ValueCallback callback) Shows a dialog asking for a value to complete an operation.static voidaskForValue(String title, String message, String defaultValue, com.smartgwt.client.widgets.form.fields.FormItem item, Integer width, com.smartgwt.client.util.ValueCallback callback, com.smartgwt.client.widgets.events.ClickHandler cancelCallback) Shows a dialog asking for a value to complete an operation.static voidaskForValue(String title, String message, String defaultValue, Integer width, com.smartgwt.client.util.ValueCallback callback) Show a dialog asking for a value to complete a operationstatic voidaskForValues(String title, String message, List<com.smartgwt.client.widgets.form.fields.FormItem> items, Integer width, com.smartgwt.client.util.ValueCallback callback) Show a dialog asking for a set of values to complete an operation.static voidaskForValues(String title, String message, List<com.smartgwt.client.widgets.form.fields.FormItem> items, Integer width, com.smartgwt.client.util.ValueCallback callback, com.smartgwt.client.widgets.events.ClickHandler cancelCallback) Show a dialog asking for a set of values to complete an operation.static voidstatic voidstatic voidstatic void
-
Method Details
-
ask
public static void ask(String title, String message, Integer width, com.smartgwt.client.util.BooleanCallback callback) Show a dialog to confirm a operation- Parameters:
title- title of the dialog boxmessage- text printed in the body of the dialog boxwidth- width dimension expressed in pixelscallback- a call back invoked when the user confirm his choice
-
ask
-
askForValue
public static void askForValue(String title, String message, String defaultValue, Integer width, com.smartgwt.client.util.ValueCallback callback) Show a dialog asking for a value to complete a operation- Parameters:
title- title of the dialog boxmessage- text printed in the body of the dialog boxdefaultValue- default valuewidth- width of the dialog boxcallback- call back used when the user confirms the input
-
askForDocumentPassword
-
askForValue
-
askForValues
public static void askForValues(String title, String message, List<com.smartgwt.client.widgets.form.fields.FormItem> items, Integer width, com.smartgwt.client.util.ValueCallback callback, com.smartgwt.client.widgets.events.ClickHandler cancelCallback) Show a dialog asking for a set of values to complete an operation. The provided form items will be used- Parameters:
title- title of the dialog boxmessage- text printed in the body of the dialog boxitems- the items used to input the valueswidth- width of the dialog boxcallback- call back used when the user confirms the inputcancelCallback- call back used when the user cancels the input
-
askForValues
public static void askForValues(String title, String message, List<com.smartgwt.client.widgets.form.fields.FormItem> items, Integer width, com.smartgwt.client.util.ValueCallback callback) Show a dialog asking for a set of values to complete an operation. The provided form items will be used- Parameters:
title- title of the dialog boxmessage- text printed in the body of the dialog boxitems- the items used to input the valueswidth- width of the dialog boxcallback- call back used when the user confirms the input
-
askForValue
public static void askForValue(String title, String message, String defaultValue, com.smartgwt.client.widgets.form.fields.FormItem item, Integer width, com.smartgwt.client.util.ValueCallback callback) Shows a dialog asking for a value to complete an operation. The provided form item will be used- Parameters:
title- title of the dialog boxmessage- text printed in the body of the dialog boxdefaultValue- default valueitem- the item used to input the valuewidth- width of the dialog boxcallback- call back used when the user confirms the input
-
askForValue
public static void askForValue(String title, String message, String defaultValue, com.smartgwt.client.widgets.form.fields.FormItem item, Integer width, com.smartgwt.client.util.ValueCallback callback, com.smartgwt.client.widgets.events.ClickHandler cancelCallback) Shows a dialog asking for a value to complete an operation. The provided form item will be used- Parameters:
title- title of the dialog boxmessage- text printed in the body of the dialog boxdefaultValue- default valueitem- the item used to input the valuewidth- width of the dialog boxcallback- call back used when the user confirms the inputcancelCallback- call back used when the user cancels the input
-
askForValue
-
askForString
-
askForStringMandatory
-
clearPrompt
public static void clearPrompt() -
prompt
-
contactingServer
public static void contactingServer() -
updatingServer
public static void updatingServer()
-