Interface IXItemWidget

  • All Superinterfaces:
    IXItem, IXItemBasic

    public interface IXItemWidget
    extends IXItem
    Interface for widget plugins. Each widget plugin provides a set of IXItemWidget classes.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getCssData

        default String getCssData​(IGetWidgetResourceParams params)
                           throws IOException
        Gets the CSS required by this widget. The returned content may depend on the provided params. For example, a plugin might want to replace links in the JavaScript resource with the current context path where the application is running.
        Parameters:
        params - Parameters for obtaining the resource.
        Returns:
        The CSS required by this widget.
        Throws:
        IOException - When the resource could not be read. The form will proceed to load, but the resource will not be available.
      • getCssResourceURL

        @Deprecated
        default String getCssResourceURL()
        Deprecated.
        Do not override this, this will method will be removed. You do not need to care how the resource is served, you only need to implement getCssData(IGetWidgetResourceParams).
        Get the URL from which to read CSS resource.
        Returns:
        The URL from which to read CSS resource
      • getIcon

        default String getIcon()
        Specified by:
        getIcon in interface IXItemBasic
        Returns:
        The CSS class for the icon of this form item, such as for example ico-fc-XCheckbox.
      • getJavaScriptData

        default String getJavaScriptData​(IGetWidgetResourceParams params)
                                  throws IOException
        Gets the JavaScript required by this widget. The returned content may depend on the provided params. For example, a plugin might want to replace links in the JavaScript resource with the current context path where the application is running.
        Parameters:
        params - Parameters for obtaining the resource.
        Returns:
        The JavaScript required by this widget.
        Throws:
        IOException - When the resource could not be read. The form will proceed to load, but the resource will not be available.
      • getJavaScriptResourceURL

        @Deprecated
        default String getJavaScriptResourceURL()
        Deprecated.
        Do not override this, this will method will be removed. You do not need to care how the resource is served, you only need to implement getJavaScriptData(IGetWidgetResourceParams).
        Get the URL from which to read JavaScript resource.
        Returns:
        The URL from which to read CSS resource
      • getLabel

        default String getLabel​(Locale locale)
        Parameters:
        locale - Locale for which to find the label.
        Returns:
        The localized label of this widget.