Class GridTabWrapper

java.lang.Object
org.adempiere.model.GridTabWrapper
All Implemented Interfaces:
InvocationHandler

public class GridTabWrapper extends Object implements InvocationHandler
Wrap GridTab to iDempiere Model Interface (i.e. generated interfaces).
Usage example:
 I_A_Asset_Disposed bean = GridTabWrapper.create(mTab, I_A_Asset_Disposed.class); 
 Timestamp dateDoc = (Timestamp)value; 
 bean.setDateAcct(dateDoc); 
 bean.setA_Disposed_Date(dateDoc); 
 
Author:
Teo Sarca, www.arhipac.ro
  • Method Details

    • create

      public static <T> T create(GridTab gridTab, Class<T> cl)
      Create wrapper of type cl for gridTab.
      Type Parameters:
      T - iDempiere Model Interface (i.e. generated I_* interfaces) type
      Parameters:
      gridTab -
      cl - iDempiere Model Interface (i.e. generated I_* interfaces) class
      Returns:
      wrapped instance for gridTab
    • invoke

      public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
      Specified by:
      invoke in interface InvocationHandler
      Throws:
      Throwable
    • getGridTab

      public GridTab getGridTab()
      Get wrap GridTab instance
      Returns:
      Wrap grid tab instance