Class Widgets

    • Method Detail

      • newWidget

        public Widget newWidget​(java.lang.String id)
        Create a new widget with given id.
        Parameters:
        id - A String represents the id of the widget.
        Returns:
        a Widget.
        Since:
        MicroStrategy Web 8.1.1
      • getWidget

        public Widget getWidget​(int i)
        Returns a widget at given index.
        Parameters:
        i - The index of the widget.
        Returns:
        a widget if found. Otherwise, returns null.
      • getWidget

        public Widget getWidget​(java.lang.String id)
        Returns a widget with the specified id.
        Parameters:
        id - the wodget id.
        Returns:
        a widget with the specified id
      • getWidgetsJson

        public java.lang.String getWidgetsJson​(Messages messages,
                                               VisualizationList visList)
        Deprecated.
        Returns a String that defines a JSON object used to pass the list of all widgets to the client side
        Parameters:
        messages - The Messages object
        Returns:
        a String that defines a JSON object used to pass the list of all widgets to the client side
        Since:
        MicroStrategy Web 9.0.1
      • getWidgetsJson

        public java.lang.String getWidgetsJson​(Messages messages)
        Returns a String that defines a JSON object used to pass the list of all widgets to the client side
        Parameters:
        messages - The Messages object
        Returns:
        a String that defines a JSON object used to pass the list of all widgets to the client side
        Since:
        MicroStrategy Web 9.0.1