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)
      Load Constructor
      Parameters:
      ctx - context
      rs - ResultSet
      trxName - transaction
    • MPrintFormatItem

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

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

      public MPrintFormatItem(Properties ctx, MPrintFormatItem copy, String trxName)
      Copy constructor
      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 for 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()
      Is of Type Script
      Returns:
      true if of type script
    • isTypeField

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

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

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

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

      public boolean isTypeBox()
      Is of Type Box (Line or Rectangle)
      Returns:
      true if of type box
    • isFieldCenter

      public boolean isFieldCenter()
      Is Field Alignment Center
      Returns:
      true if field alignment is center
    • isFieldAlignLeading

      public boolean isFieldAlignLeading()
      Is Field Alignment Leading Left
      Returns:
      true if field alignment is leading left
    • isFieldAlignTrailing

      public boolean isFieldAlignTrailing()
      Field Alignment Trailing Right
      Returns:
      true if field alignment is trailing right
    • isFieldAlignBlock

      public boolean isFieldAlignBlock()
      Is Field Alignment Block
      Returns:
      true if field alignment is block
    • isFieldAlignDefault

      public boolean isFieldAlignDefault()
      Is Field Alignment Default
      Returns:
      true if field is with default alignment
    • isLineAlignCenter

      public boolean isLineAlignCenter()
      Is Line Alignment Center
      Returns:
      true if line alignment is center
    • isLineAlignLeading

      public boolean isLineAlignLeading()
      Is Line Alignment Leading Left
      Returns:
      true if line alignment is leading left
    • isLineAlignTrailing

      public boolean isLineAlignTrailing()
      Is Line Alignment Trailing Right
      Returns:
      true if line alignment is trailing right
    • isHeader

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

      public boolean isContent()
      Is Content Area
      Returns:
      true if area is content
    • isFooter

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

      public boolean isBarcode()
      Is Type Barcode
      Returns:
      true if item is of type barcode
    • 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 and Save 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)
      Create and save print format item from GridField
      Parameters:
      format -
      gridField -
      seqNo -
      Returns:
      new print format item instance
    • 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)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a 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.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a new record
      success - true if save operation was success
      Returns:
      if save was a success
    • is_Changed

      public boolean is_Changed()
      Description copied from class: PO
      Is there changes 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