Difference between revisions of "NF1.0 CustomWindowToolbarButton"

From iDempiere en
m (2 revisions: Import from main Wiki)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
__TOC__
 +
 
= '''Feature:''' Custom Window Toolbar Buttons =
 
= '''Feature:''' Custom Window Toolbar Buttons =
  
'''Goal:''' Usability
+
'''Goal:''' Technical
  
 
'''Sponsor :''' [[Sponsor:Trek_Global|Trek Global]]
 
'''Sponsor :''' [[Sponsor:Trek_Global|Trek Global]]
Line 15: Line 17:
 
[[Image:NF001_CustomWindowToolbarButton001.png]]
 
[[Image:NF001_CustomWindowToolbarButton001.png]]
 
   
 
   
 
+
Class ExportAction is implements interface org.adempiere.webui.action.IAction
 +
<br/>
 
'''OSGi Service Component - Overview'''
 
'''OSGi Service Component - Overview'''
 
<br/>
 
<br/>
Line 57: Line 60:
 
[[Image:NF001_CustomWindowToolbarButton009.png]]
 
[[Image:NF001_CustomWindowToolbarButton009.png]]
  
[[Category:New Features v0.01|S]]
+
 
 +
[[en:NF1.0_CustomWindowToolbarButton]]
 +
[[de:NF1.0 Benutzerdefinierte Fenster Toolbar Buttons]]
 +
 
 +
 
 +
[[Category:New Features|T]]
 +
[[Category:New Features v1.0|T]]
 +
[[Category:New Features Technical]]
 +
[[Category:Developer documentation]]
 +
[[Category:Development]]

Latest revision as of 18:29, 27 November 2019

Feature: Custom Window Toolbar Buttons

Goal: Technical

Sponsor : Trek Global

Description:

Create custom toolbar button for window using OSGi dynamic service.

Example:

OSGi bundle project for the export button action

NF001 CustomWindowToolbarButton001.png

Class ExportAction is implements interface org.adempiere.webui.action.IAction
OSGi Service Component - Overview
Note that the component name is use to locate the service and also the loading of image and tooltip text.

NF001 CustomWindowToolbarButton002.png


OSGi Service Component- Services

NF001 CustomWindowToolbarButton003.png


Bundle activator for auto 2pack import

NF001 CustomWindowToolbarButton004.png


Create new window toolbar button record

NF001 CustomWindowToolbarButton005.png


Create tooltip text message

NF001 CustomWindowToolbarButton006.png


Pack out the toolbar button and tooltip text record

NF001 CustomWindowToolbarButton007.png


Testing from Eclipse

NF001 CustomWindowToolbarButton008.png


Result

NF001 CustomWindowToolbarButton009.png

Cookies help us deliver our services. By using our services, you agree to our use of cookies.