Class LD


  • public class LD
    extends Object
    This class contains useful methods for objects visualization.
    Since:
    6.1
    Author:
    Matteo Caruso - LogicalDOC
    • Constructor Summary

      Constructors 
      Constructor Description
      LD()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void ask​(String title, String message, com.smartgwt.client.util.BooleanCallback callback)  
      static void ask​(String title, String message, Integer width, com.smartgwt.client.util.BooleanCallback callback)
      Show a dialog to confirm a operation
      static void askForDocumentPassword​(String title, String message, Integer width, com.smartgwt.client.util.ValueCallback callback)  
      static void askForString​(String title, String message, String defaultValue, com.smartgwt.client.util.ValueCallback callback)  
      static void askForStringMandatory​(String title, String message, String defaultValue, com.smartgwt.client.util.ValueCallback callback)  
      static void askForValue​(String title, String message, String defaultValue, com.smartgwt.client.util.ValueCallback callback)  
      static void askForValue​(String title, String message, String defaultValue, com.smartgwt.client.widgets.form.fields.FormItem item, com.smartgwt.client.util.ValueCallback callback)  
      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.
      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.
      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
      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.
      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.
      static void clearPrompt()  
      static void contactingServer()  
      static void prompt​(String message)  
      static void updatingServer()  
    • Constructor Detail

      • LD

        public LD()
    • Method Detail

      • 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 box
        message - text printed in the body of the dialog box
        width - width dimension expressed in pixels
        callback - a call back invoked when the user confirm his choice
      • ask

        public static void ask​(String title,
                               String message,
                               com.smartgwt.client.util.BooleanCallback callback)
      • 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 box
        message - text printed in the body of the dialog box
        defaultValue - default value
        width - width of the dialog box
        callback - call back used when the user confirms the input
      • askForDocumentPassword

        public static void askForDocumentPassword​(String title,
                                                  String message,
                                                  Integer width,
                                                  com.smartgwt.client.util.ValueCallback callback)
      • askForValue

        public static void askForValue​(String title,
                                       String message,
                                       String defaultValue,
                                       com.smartgwt.client.util.ValueCallback callback)
      • 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 box
        message - text printed in the body of the dialog box
        items - the items used to input the values
        width - width of the dialog box
        callback - call back used when the user confirms the input
        cancelCallback - 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 box
        message - text printed in the body of the dialog box
        items - the items used to input the values
        width - width of the dialog box
        callback - 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 box
        message - text printed in the body of the dialog box
        defaultValue - default value
        item - the item used to input the value
        width - width of the dialog box
        callback - 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 box
        message - text printed in the body of the dialog box
        defaultValue - default value
        item - the item used to input the value
        width - width of the dialog box
        callback - call back used when the user confirms the input
        cancelCallback - call back used when the user cancels the input
      • askForValue

        public static void askForValue​(String title,
                                       String message,
                                       String defaultValue,
                                       com.smartgwt.client.widgets.form.fields.FormItem item,
                                       com.smartgwt.client.util.ValueCallback callback)
      • askForString

        public static void askForString​(String title,
                                        String message,
                                        String defaultValue,
                                        com.smartgwt.client.util.ValueCallback callback)
      • askForStringMandatory

        public static void askForStringMandatory​(String title,
                                                 String message,
                                                 String defaultValue,
                                                 com.smartgwt.client.util.ValueCallback callback)
      • clearPrompt

        public static void clearPrompt()
      • prompt

        public static void prompt​(String message)
      • contactingServer

        public static void contactingServer()
      • updatingServer

        public static void updatingServer()