Class MTab

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_Tab, I_Persistent, Evaluatee, ImmutablePOSupport

public class MTab extends X_AD_Tab implements ImmutablePOSupport
Window Tab Model
Version:
$Id: MTab.java,v 1.2 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com, e-Evolution
  • RF [2826384] The Order and Included Columns should be to fill mandatory
  • https://sourceforge.net/p/adempiere/feature-requests/775/
  • See Also:
    • Constructor Details

      • MTab

        public MTab(Properties ctx, String AD_Tab_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_Tab_UU - UUID key
        trxName - Transaction
      • MTab

        public MTab(Properties ctx, int AD_Tab_ID, String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_Tab_ID - id
        trxName - transaction
      • MTab

        public MTab(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MTab

        public MTab(MWindow parent)
        Parent Constructor
        Parameters:
        parent - parent
      • MTab

        public MTab(MWindow parent, MTab from)
        Parent Constructor
        Parameters:
        parent - parent
        from - tab to copy from
      • MTab

        public MTab(MTab copy)
        Copy constructor
        Parameters:
        copy -
      • MTab

        public MTab(Properties ctx, MTab copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MTab

        public MTab(Properties ctx, MTab copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • get

        public static MTab get(int AD_Tab_ID)
        Get MTab from cache (immutable)
        Parameters:
        AD_Tab_ID -
        Returns:
        MTab
      • getFields

        public MField[] getFields(boolean reload, String trxName)
        Get Fields
        Parameters:
        reload - true to reload from DB
        trxName - transaction
        Returns:
        array of field
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • getTab_ID

        public static int getTab_ID(int AD_Window_ID, String TabName)
        get AD_Tab_ID via tab name
        Parameters:
        AD_Window_ID - window id
        TabName - tab name
        Returns:
        AD_Tab_ID or 0 (not found) or -1 (error)
      • getParentTabID

        public int getParentTabID()
        Get AD_Tab_ID of parent tab
        Returns:
        AD_Tab_ID or -1 (no parent tab)
      • markImmutable

        public MTab markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO