Class MPrintFormatItem

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

public class MPrintFormatItem extends X_AD_PrintFormatItem implements ImmutablePOSupport
Print Format Item Model. Caches Column Name (Add missing Items with PrintFormatUtil)
Version:
$Id: MPrintFormatItem.java,v 1.3 2006/08/03 22:17:17 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MPrintFormatItem

      public MPrintFormatItem(Properties ctx, String AD_PrintFormatItem_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_PrintFormatItem_UU - UUID key
      trxName - Transaction
    • 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 -
    • MPrintFormatItem

      public MPrintFormatItem(Properties ctx, MPrintFormatItem copy)
      Parameters:
      ctx -
      copy -
    • MPrintFormatItem

      public MPrintFormatItem(Properties ctx, MPrintFormatItem copy, String trxName)
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • 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
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class X_AD_PrintFormatItem
      Returns:
      info
    • 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
    • createFromGridField

      public static MPrintFormatItem createFromGridField(MPrintFormat format, GridField gridField, int seqNo)
    • 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
    • markImmutable

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