Class MPrintFormatItem

    • Constructor Detail

      • MPrintFormatItem

        public MPrintFormatItem​(Properties ctx,
                                int AD_PrintFormatItem_ID,
                                String trxName)
        Constructor
        Parameters:
        ctx - context
        AD_PrintFormatItem_ID - AD_PrintFormatItem_ID
        trxName - transaction
      • MPrintFormatItem

        public MPrintFormatItem​(Properties ctx,
                                ResultSet rs,
                                String trxName)
        Constructor
        Parameters:
        ctx - context
        rs - ResultSet
        trxName - transaction
      • MPrintFormatItem

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

      • getPrintName

        public String getPrintName​(Language language)
        Get print name with language
        Parameters:
        language - language - ignored if IsMultiLingualDocument not 'Y'
        Returns:
        print name
      • setPrintName

        public void setPrintName​(Language language,
                                 String printName)
        Set print name on language
        Parameters:
        language - language - ignored if IsMultiLingualDocument not 'Y'
      • getPrintNameSuffix

        public String getPrintNameSuffix​(Language language)
        Get print name suffix with language
        Parameters:
        language - language - ignored if IsMultiLingualDocument not 'Y'
        Returns:
        print name suffix
      • isTypeScript

        public boolean isTypeScript()
        Type Script
        Returns:
        true if script
      • isTypeField

        public boolean isTypeField()
        Type Field
        Returns:
        true if field
      • isTypeText

        public boolean isTypeText()
        Type Text
        Returns:
        true if text
      • isTypePrintFormat

        public boolean isTypePrintFormat()
        Type Print Format
        Returns:
        true if print format
      • isTypeImage

        public boolean isTypeImage()
        Type Image
        Returns:
        true if image
      • isTypeBox

        public boolean isTypeBox()
        Type Box
        Returns:
        true if box
      • isFieldCenter

        public boolean isFieldCenter()
        Field Center
        Returns:
        true if center
      • isFieldAlignLeading

        public boolean isFieldAlignLeading()
        Field Align Leading
        Returns:
        true if leading
      • isFieldAlignTrailing

        public boolean isFieldAlignTrailing()
        Field Align Trailing
        Returns:
        true if trailing
      • isFieldAlignBlock

        public boolean isFieldAlignBlock()
        Field Align Block
        Returns:
        true if block
      • isFieldAlignDefault

        public boolean isFieldAlignDefault()
        Field Align Default
        Returns:
        true if default alignment
      • isLineAlignCenter

        public boolean isLineAlignCenter()
        Line Align Center
        Returns:
        true if center
      • isLineAlignLeading

        public boolean isLineAlignLeading()
        Line Align Leading
        Returns:
        true if leading
      • isLineAlignTrailing

        public boolean isLineAlignTrailing()
        Line Align Trailing
        Returns:
        true if trailing
      • isHeader

        public boolean isHeader()
        Header
        Returns:
        true if area is header
      • isContent

        public boolean isContent()
        Content
        Returns:
        true if area is centent
      • isFooter

        public boolean isFooter()
        Footer
        Returns:
        true if area is footer
      • isBarcode

        public boolean isBarcode()
        Barcode
        Returns:
        true if barcode selected
      • getColumnName

        public String getColumnName()
        Get ColumnName from AD_Column_ID
        Returns:
        ColumnName
      • createFromColumn

        public static MPrintFormatItem createFromColumn​(MPrintFormat format,
                                                        int AD_Column_ID,
                                                        int seqNo)
        Create Print Format Item from Column
        Parameters:
        format - parent
        AD_Column_ID - column
        seqNo - sequence of display if 0 it is not printed
        Returns:
        Print Format Item
      • copyToClient

        public MPrintFormatItem copyToClient​(int To_Client_ID,
                                             int AD_PrintFormat_ID)
        Copy existing Definition To Client
        Parameters:
        To_Client_ID - to client
        AD_PrintFormat_ID - parent print format
        Returns:
        print format item
      • copyToClient

        public MPrintFormatItem copyToClient​(int To_Client_ID,
                                             int AD_PrintFormat_ID,
                                             String trxName)
        Copy existing Definition To Client
        Parameters:
        To_Client_ID - to client
        AD_PrintFormat_ID - parent print format
        Returns:
        print format item
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord -
        Returns:
        true if ok
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • is_Changed

        public boolean is_Changed()
        Description copied from class: PO
        Is there a Change to be saved?
        Overrides:
        is_Changed in class PO
        Returns:
        true if record changed