Class WidgetUtils

java.lang.Object
com.vdoc.sdk.commons.utils.WidgetUtils

public class WidgetUtils extends Object
Utility class for widgets
Author:
famaridon
  • Method Details

    • getWidgetHtml

      public static String getWidgetHtml(IWidget widget)
      Get the html made by an IWidget
      Parameters:
      widget - the IWidget we want the html
      Returns:
      the HTML
    • getTemplateWriter

      public static com.axemble.vdp.ui.framework.template.TemplateWriter getTemplateWriter(String relativePath) throws RenderException
      Retrieve the template writer
      Parameters:
      relativePath - the template writer's path
      Returns:
      the template writer
      Throws:
      RenderException - on error
    • getWidgetUniqueIdentifier

      public static String getWidgetUniqueIdentifier(com.axemble.vdp.ui.framework.foundation.Navigator navigator, com.axemble.vdp.ui.framework.foundation.Widget widget)
      Get the widget's unique identifier
      Parameters:
      navigator - the current navigator
      widget - the widget
      Returns:
      the widget's unique identifier
    • clearTemplateCache

      public static void clearTemplateCache(IConfiguration configuration)
      Clear the template cache if the configuration is in debug mode
      Parameters:
      configuration - the configuration
    • buildViewIconButton

      public static com.axemble.vdp.ui.framework.widgets.CtlImageButton buildViewIconButton(String actionName)
      Build the view's icon button
      Parameters:
      actionName - the name of the button
      Returns:
      the image button
    • buildViewImage

      public static com.axemble.vdp.ui.framework.widgets.CtlImage buildViewImage()
      Build the view's image
      Returns:
      the image