Class MWindow

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

public class MWindow extends X_AD_Window implements ImmutablePOSupport
Window Model
Version:
$Id: MWindow.java,v 1.2 2006/07/30 00:58:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MWindow

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

      public MWindow(Properties ctx, int AD_Window_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Window_ID -
      trxName - transaction
    • MWindow

      public MWindow(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MWindow

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

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

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

    • get

      public static MWindow get(int AD_Window_ID)
      Get Window from Cache (immutable)
      Parameters:
      AD_Window_ID - id
      Returns:
      MWindow
    • get

      public static MWindow get(Properties ctx, int AD_Window_ID)
      Get Window from Cache (immutable)
      Parameters:
      ctx - context
      AD_Window_ID - id
      Returns:
      MWindow
    • get

      public static MWindow get(Properties ctx, String uu)
      Get window record by UUID
      Parameters:
      ctx - context
      uu - AD_Window_UU
      Returns:
      MWindow object or null
    • setWindowSize

      public void setWindowSize(Dimension size)
      Set Window Size
      Parameters:
      size - size
    • getTabs

      public MTab[] getTabs(boolean reload, String trxName)
      Get Tabs
      Parameters:
      reload - true to reload data
      trxName - transaction
      Returns:
      array of tabs
    • 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
    • getWFNodes

      @Deprecated public static MWFNode[] getWFNodes(Properties ctx, String whereClause, String trxName)
    • getWindow_ID

      public static int getWindow_ID(String windowName)
      Get Window ID
      Parameters:
      windowName - window name
      Returns:
      AD_Window_ID
    • markImmutable

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