Class Extensions

java.lang.Object
org.adempiere.webui.Extensions

public class Extensions extends Object
  • Constructor Details

    • Extensions

      public Extensions()
  • Method Details

    • getForm

      public static ADForm getForm(String formId)
      Get ADForm instance
      Parameters:
      formId - Java class name, OSGi component name or equinox extension Id
      Returns:
      IFormController instance or null if formId not found
    • getProcessParameterListeners

      public static List<IProcessParameterListener> getProcessParameterListeners(String processClass, String columnName)
      Get process parameter listeners
      Parameters:
      processClass - Java class name of process
      columnName -
      Returns:
      list of IProcessParameterListener
    • getCreateFrom

      public static ICreateFrom getCreateFrom(GridTab mTab)
      Get CreateFrom instance
      Parameters:
      mTab -
      Returns:
      ICreateFrom instance
    • getPaymentForm

      public static IPaymentForm getPaymentForm(int windowNo, GridTab mTab, String paymentRule)
      Get payment form instance
      Parameters:
      windowNo -
      mTab - GridTab
      paymentRule -
      Returns:
      IPaymentForm instance
    • getDashboardGadget

      public static final org.zkoss.zk.ui.Component getDashboardGadget(String url, org.zkoss.zk.ui.Component parent)
      Get dashboard gadget component
      Parameters:
      url -
      parent -
      Returns:
      Gadget component
    • getDashboardGadget

      public static final org.zkoss.zk.ui.Component getDashboardGadget(String url, org.zkoss.zk.ui.Component parent, MDashboardContent dc)
      Get dashboard gadget component
      Parameters:
      url -
      parent -
      dc -
      Returns:
      Gadget component
    • getChartRendererServices

      public static final List<IChartRendererService> getChartRendererServices()
      Get chart renderer services
      Returns:
      list of IChartRendererService
    • getMappedFormFactory

      public static IMappedFormFactory getMappedFormFactory()
      Get mapped form factory service
      Returns:
      IMappedFormFactory instance
    • getQuickEntry

      public static AbstractWQuickEntry getQuickEntry(Integer AdWindowID)
      Get quick entry instance
      Parameters:
      AdWindowID - AD_Window_ID
      Returns:
      AbstractWQuickEntry instance or null if AdWindowID not found
    • getQuickEntry

      public static AbstractWQuickEntry getQuickEntry(int WindowNo, int TabNo, int AdWindowID)
      Get quick entry instance
      Parameters:
      WindowNo -
      TabNo -
      AdWindowID - AD_Window_ID
      Returns:
      AbstractWQuickEntry instance or null if AdWindowID not found
    • getMediaView

      public static IMediaView getMediaView(String contentType, String extension, boolean mobile)
      Get media viewer service
      Parameters:
      contentType -
      extension -
      mobile - true for mobile, otherwise for desktop
      Returns:
      IMediaView instance
    • getADTabPanel

      public static IADTabpanel getADTabPanel(String tabType)
      Get IADTabpanel instance
      Parameters:
      tabType - build in - FORM or SORT, custom - through IADTabPanelFactory extension
      Returns:
      IADTabpanel instance
    • getReportFormatSelector

      public static IReportFormatSelector getReportFormatSelector(ReportFormatRequest request)
      Get the report viewer format selector from the highest ranking IReportFormatSelectorFactory that applies, or the default combo box.
      Parameters:
      request - report and role context
      Returns:
      selector, never null
    • getReportViewerRenderers

      public static List<IReportViewerRenderer> getReportViewerRenderers()
      Get report viewer renderers
      Returns:
      list of IReportViewerRenderer
    • getFindWindow

      @Deprecated(since="13", forRemoval=true) public static FindWindow getFindWindow(int targetWindowNo, int targetTabNo, String title, int AD_Table_ID, String tableName, String whereExtended, GridField[] findFields, int minRecords, int adTabId, AbstractADWindowContent windowPanel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get find window
      Parameters:
      targetWindowNo -
      targetTabNo -
      title -
      AD_Table_ID -
      tableName -
      whereExtended -
      findFields -
      minRecords -
      adTabId -
      windowPanel -
      Returns:
      FindWindow instance
    • getFindWindow

      public static FindWindow getFindWindow(int targetWindowNo, int targetTabNo, String title, int AD_Table_ID, String tableName, SQLFragment filterExtended, GridField[] findFields, int minRecords, int adTabId, AbstractADWindowContent windowPanel)
      Get find window
      Parameters:
      targetWindowNo -
      targetTabNo -
      title -
      AD_Table_ID -
      tableName -
      filterExtended -
      findFields -
      minRecords -
      adTabId -
      windowPanel -
      Returns:
      FindWindow instance
    • newCalendarWindow

      public static Window newCalendarWindow(org.zkoss.calendar.impl.SimpleCalendarModel model)
      Create the calendar window of the calendar dashboard gadget, using the highest ranking ICalendarWindowFactory. The window is not shown, it is the responsibility of the caller to show it.
      Parameters:
      model - calendar model shared with the caller
      Returns:
      the new calendar window
    • getPostingService

      public static IPostingService getPostingService()
      Get the optional posting service.
      Returns null when the accounting module (org.idempiere.acct) is not present, making accounting truly optional.
      Returns:
      IPostingService instance, or null if not registered