java.lang.Object
com.apgar.common.lib.ui.widget.highlightwidget.CustomWidget

public abstract class CustomWidget extends Object
Custom Widget Class.

Class to be extended by any additional widget to be used along with the HighlightChangesWidget class where HighlightChangesWidgetFactory.setCustomWidgetClass(String) also needs to be set to the name of the second Widget class.

Author:
APGAR Consulting
  • Constructor Details

    • CustomWidget

      public CustomWidget()
  • Method Details

    • drawWidget

      public abstract void drawWidget(WidgetWriter widgetWriter, WidgetDisplayContext widgetDisplayContext, String javaScriptMethod)
      Abstract method to draw the widget. Implemented in the class that extends CustomWidget.
      Parameters:
      widgetWriter - WidgetWriter
      widgetDisplayContext - WidgetDisplayContext
      javaScriptMethod - Name of JavaScript method to draw the widget