Class MPrintColor

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

public class MPrintColor extends X_AD_PrintColor implements ImmutablePOSupport
Print Color Model for AD_PrintColor
Version:
$Id: MPrintColor.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

    • darkGreen

      public static final Color darkGreen
      Dark Green
    • blackGreen

      public static final Color blackGreen
      Black Green
    • darkBlue

      public static final Color darkBlue
      Dark Blue
    • blackBlue

      public static final Color blackBlue
      Black Blue
    • whiteGray

      public static final Color whiteGray
      White Gray
    • brown

      public static final Color brown
      Brown
    • darkBrown

      public static final Color darkBrown
      Dark Brown
  • Constructor Details

    • MPrintColor

      public MPrintColor(Properties ctx, String AD_PrintColor_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_PrintColor_UU - UUID key
      trxName - Transaction
    • MPrintColor

      public MPrintColor(Properties ctx, int AD_PrintColor_ID, String trxName)
      Constructor
      Parameters:
      ctx - context
      AD_PrintColor_ID - ID
      trxName - transaction
    • MPrintColor

      public MPrintColor(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MPrintColor

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

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

      public MPrintColor(Properties ctx, MPrintColor copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MPrintColor get(int AD_PrintColor_ID)
      Get Color from cache (immutable) if id = 0, it returns a new color (black) - but do not modify/save as cached
      Parameters:
      AD_PrintColor_ID - id
      Returns:
      Color
    • get

      public static MPrintColor get(Properties ctx, int AD_PrintColor_ID)
      Get Color from cache (immutable) if id = 0, it returns a new color (black) - but do not modify/save as cached
      Parameters:
      ctx - context
      AD_PrintColor_ID - id
      Returns:
      Color
    • get

      public static MPrintColor get(Properties ctx, String AD_PrintColor_ID)
      Get Color
      Parameters:
      ctx - context
      AD_PrintColor_ID - id
      Returns:
      Color or null
    • getColor

      public Color getColor()
      Get Color
      Returns:
      Color
    • setColor

      public void setColor(Color color)
      Set Color
      Parameters:
      color - Color
    • getRRGGBB

      public String getRRGGBB()
      Get Color as RRGGBB hex string for HTML font tag
      Returns:
      rgb hex value
    • markImmutable

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

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_PrintColor
      Returns:
      info