Package org.adempiere.webui
Class Extensions
java.lang.Object
org.adempiere.webui.Extensions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IADTabpanelgetADTabPanel(String tabType) Get IADTabpanel instancestatic final List<IChartRendererService>Get chart renderer servicesstatic ICreateFromgetCreateFrom(GridTab mTab) Get CreateFrom instancestatic final org.zkoss.zk.ui.ComponentgetDashboardGadget(String url, org.zkoss.zk.ui.Component parent) Get dashboard gadget componentstatic final org.zkoss.zk.ui.ComponentgetDashboardGadget(String url, org.zkoss.zk.ui.Component parent, MDashboardContent dc) Get dashboard gadget componentstatic FindWindowgetFindWindow(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.static FindWindowgetFindWindow(int targetWindowNo, int targetTabNo, String title, int AD_Table_ID, String tableName, SQLFragment filterExtended, GridField[] findFields, int minRecords, int adTabId, AbstractADWindowContent windowPanel) Get find windowstatic ADFormGet ADForm instancestatic IMappedFormFactoryGet mapped form factory servicestatic IMediaViewgetMediaView(String contentType, String extension, boolean mobile) Get media viewer servicestatic IPaymentFormgetPaymentForm(int windowNo, GridTab mTab, String paymentRule) Get payment form instancestatic IPostingServiceGet the optional posting service.
Returnsnullwhen the accounting module (org.idempiere.acct) is not present, making accounting truly optional.static List<IProcessParameterListener>getProcessParameterListeners(String processClass, String columnName) Get process parameter listenersstatic AbstractWQuickEntrygetQuickEntry(int WindowNo, int TabNo, int AdWindowID) Get quick entry instancestatic AbstractWQuickEntrygetQuickEntry(Integer AdWindowID) Get quick entry instancestatic IReportFormatSelectorGet the report viewer format selector from the highest rankingIReportFormatSelectorFactorythat applies, or the default combo box.static List<IReportViewerRenderer>Get report viewer renderersstatic WindownewCalendarWindow(org.zkoss.calendar.impl.SimpleCalendarModel model) Create the calendar window of the calendar dashboard gadget, using the highest rankingICalendarWindowFactory.
-
Constructor Details
-
Extensions
public Extensions()
-
-
Method Details
-
getForm
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 processcolumnName-- Returns:
- list of
IProcessParameterListener
-
getCreateFrom
Get CreateFrom instance- Parameters:
mTab-- Returns:
- ICreateFrom instance
-
getPaymentForm
Get payment form instance- Parameters:
windowNo-mTab- GridTabpaymentRule-- 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
Get chart renderer services- Returns:
- list of
IChartRendererService
-
getMappedFormFactory
Get mapped form factory service- Returns:
IMappedFormFactoryinstance
-
getQuickEntry
Get quick entry instance- Parameters:
AdWindowID- AD_Window_ID- Returns:
- AbstractWQuickEntry instance or null if AdWindowID not found
-
getQuickEntry
Get quick entry instance- Parameters:
WindowNo-TabNo-AdWindowID- AD_Window_ID- Returns:
- AbstractWQuickEntry instance or null if AdWindowID not found
-
getMediaView
Get media viewer service- Parameters:
contentType-extension-mobile- true for mobile, otherwise for desktop- Returns:
IMediaViewinstance
-
getADTabPanel
Get IADTabpanel instance- Parameters:
tabType- build in - FORM or SORT, custom - through IADTabPanelFactory extension- Returns:
IADTabpanelinstance
-
getReportFormatSelector
Get the report viewer format selector from the highest rankingIReportFormatSelectorFactorythat applies, or the default combo box.- Parameters:
request- report and role context- Returns:
- selector, never null
-
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:
FindWindowinstance
-
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:
FindWindowinstance
-
newCalendarWindow
Create the calendar window of the calendar dashboard gadget, using the highest rankingICalendarWindowFactory. 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
Get the optional posting service.
Returnsnullwhen the accounting module (org.idempiere.acct) is not present, making accounting truly optional.- Returns:
IPostingServiceinstance, ornullif not registered
-
getFindWindow(int, int, String, int, String, SQLFragment, GridField[], int, int, AbstractADWindowContent)instead