Class MPrintPaper

    • Constructor Detail

      • MPrintPaper

        public MPrintPaper​(Properties ctx,
                           int AD_PrintPaper_ID,
                           String trxName)
        Constructor
        Parameters:
        ctx - context
        AD_PrintPaper_ID - ID if 0 A4
        trxName - transaction
      • MPrintPaper

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

        public MPrintPaper​(MPrintPaper copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MPrintPaper get​(int AD_PrintPaper_ID)
        Get Paper from cache (immutable)
        Parameters:
        AD_PrintPaper_ID - id
        Returns:
        Paper
      • getMediaSize

        public MediaSize getMediaSize()
        Get Media Size. The search is hard coded as the javax.print.MediaSize* info is private
        Returns:
        MediaSize from Code
      • getMediaSizeDefault

        public MediaSize getMediaSizeDefault()
        Get Media Size
        Returns:
        Default Media Size based on Language
      • getUnitsInt

        public int getUnitsInt()
        Get Units Int
        Returns:
        units
      • getCPaper

        public CPaper getCPaper()
        Get CPaper
        Returns:
        CPaper
      • 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