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)
      Parameters:
      copy -
    • MWindow

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

      public MWindow(Properties ctx, MWindow copy, String trxName)
      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 ID by UU
      Parameters:
      ctx - context
      uu - AD_Window_UU
      Returns:
      MWindow object
    • setWindowSize

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

      public MTab[] getTabs(boolean reload, String trxName)
      Get Fields
      Parameters:
      reload - reload data
      trxName - transaction
      Returns:
      array of lines
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      After Save
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new
      success - success
      Returns:
      success
    • getWFNodes

      public static MWFNode[] getWFNodes(Properties ctx, String whereClause, String trxName)
      Get workflow nodes with where clause. Is here as MWFNode is in base
      Parameters:
      ctx - context
      whereClause - where clause w/o the actual WHERE
      trxName - transaction
      Returns:
      nodes
    • getWindow_ID

      public static int getWindow_ID(String windowName)
      get Window ID
      Parameters:
      windowName - String
      Returns:
      int retValue
    • markImmutable

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