Class MInfoWindow

    • Constructor Detail

      • MInfoWindow

        public MInfoWindow​(Properties ctx,
                           int AD_InfoWindow_ID,
                           String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_InfoWindow_ID - id
        trxName - transaction
      • MInfoWindow

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

        public MInfoWindow​(MInfoWindow copy)
        Copy constructor
        Parameters:
        copy -
      • MInfoWindow

        public MInfoWindow​(MInfoWindow copy,
                           String trxName)
        Copy constructor
        Parameters:
        copy -
    • Method Detail

      • getInfoWindow

        public static MInfoWindow getInfoWindow​(int AD_InfoWindow_ID)
        author xolali
        Parameters:
        AD_InfoWindow_ID -
        Returns:
        MInfoWindow
      • getInfoRelated

        public MInfoRelated[] getInfoRelated​(boolean requery)
        author xolali
        Parameters:
        requery -
        Returns:
      • getInfoProcess

        public MInfoProcess[] getInfoProcess​(boolean requery)
        IDEMPIERE-1334 Get list MInfoProcess of this infoWindow
        Parameters:
        requery - true get from db, false try get from cache
        Returns:
        empty array when not exists Info Process
      • checkProcessRight

        protected void checkProcessRight​(List<MInfoProcess> lsInfoProcess)
        if user haven't right to run a process, set infoProcess to null
        Parameters:
        lsInfoProcess -
      • get

        public static MInfoWindow get​(int infoWindowID,
                                      String trxName)
        Parameters:
        infoWindowID -
        trxName - return MInfoWindow if the current role can access to the specified info window ; otherwise return null
      • getInfoColumns

        public MInfoColumn[] getInfoColumns()
      • getInfoColumns

        public MInfoColumn[] getInfoColumns​(boolean requery,
                                            boolean checkDisplay)
      • getSql

        public String getSql()
        author xolali
        Returns:
      • validateSql

        public boolean validateSql()
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • validate

        public void validate()
      • setIsValidateEachColumn

        public void setIsValidateEachColumn​(boolean validateEachColumn)