Class MStyle

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

public class MStyle extends X_AD_Style implements ImmutablePOSupport
CSS Style model
Author:
hengsin
See Also:
  • Field Details

  • Constructor Details

    • MStyle

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

      public MStyle(Properties ctx, int AD_Style_ID, String trxName)
      Parameters:
      ctx -
      AD_Style_ID -
      trxName -
    • MStyle

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

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

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

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

    • get

      public static MStyle get(int AD_Style_ID)
      Get MStyle from cache (immutable)
      Parameters:
      AD_Style_ID -
      Returns:
      MStyle
    • get

      public static MStyle get(Properties ctx, int AD_Style_ID)
      Get MStyle from cache (immutable)
      Parameters:
      ctx -
      AD_Style_ID -
      Returns:
      MStyle
    • getStyleLines

      public MStyleLine[] getStyleLines()
      Get lines
      Returns:
      array of style line
    • buildStyle

      public String buildStyle(String defaultTheme, Evaluatee evaluatee)
      Build CSS style text from lines
      Parameters:
      defaultTheme -
      evaluatee - evaluatee for display logic
      Returns:
      CSS style text
    • markImmutable

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