Class GridWindow

java.lang.Object
org.compiere.model.GridWindow
All Implemented Interfaces:
Serializable

public class GridWindow extends Object implements Serializable
Window Model
Version:
$Id: GridWindow.java,v 1.4 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • GridWindow

      public GridWindow(GridWindowVO vo)
      Constructor
      Parameters:
      vo - value object
    • GridWindow

      public GridWindow(GridWindowVO vo, boolean virtual)
      Constructor
      Parameters:
      vo - value object
      virtual - true to use virtual buffer
  • Method Details

    • get

      public static GridWindow get(Properties ctx, int WindowNo, int AD_Window_ID)
      Get Grid Window
      Parameters:
      ctx - context
      WindowNo - window no for ctx
      AD_Window_ID - window id
      Returns:
      window or null if not found
    • get

      public static GridWindow get(Properties ctx, int WindowNo, int AD_Window_ID, boolean virtual)
      Get Grid Window
      Parameters:
      ctx - context
      WindowNo - window no for ctx
      AD_Window_ID - window id
      virtual -
      Returns:
      window or null if not found
    • dispose

      public void dispose()
      Dispose
    • loadCompete

      public void loadCompete()
      Wait until asynchronous loading of all tab is complete.
    • isTabInitialized

      public boolean isTabInitialized(int index)
      Is tab initialize
      Parameters:
      index - tab index
      Returns:
      true if tab at index have been initialized
    • initTab

      public void initTab(int index)
      Initialize tab
      Parameters:
      index - tab index
    • getImage

      public Image getImage()
      Get Window Icon
      Returns:
      Icon for Window
    • getMImage

      public MImage getMImage()
      Returns:
      MImage
    • getIcon

      public Icon getIcon()
      Get Window Icon
      Returns:
      Icon for Window
    • getColor

      public MColor getColor()
      Get Color
      Returns:
      MColor or null
    • isSOTrx

      public boolean isSOTrx()
      Returns:
      true if window is for SO Trx
    • query

      public void query()
      Open and query first Tab (events should be enabled) and navigate to first row.
    • getTabCount

      public int getTabCount()
      Get number of Tabs
      Returns:
      number of tabs
    • getTab

      public GridTab getTab(int i)
      Parameters:
      i - tab index
      Returns:
      GridTab at tab index or null if tab index is invalid
    • getTabIndex

      public int getTabIndex(GridTab tab)
      Parameters:
      tab -
      Returns:
      tab index
    • getAD_Window_ID

      public int getAD_Window_ID()
      Get Window_ID
      Returns:
      AD_Window_ID
    • getWindowNo

      public int getWindowNo()
      Get WindowNo
      Returns:
      WindowNo
    • getName

      public String getName()
      Get Name
      Returns:
      name
    • getDescription

      public String getDescription()
      Get Description
      Returns:
      Description
    • getHelp

      public String getHelp()
      Get Help
      Returns:
      Help
    • getWindowType

      public String getWindowType()
      Get Window Type
      Returns:
      Window Type see WindowType_*
    • isTransaction

      public boolean isTransaction()
      Is Transaction Window
      Returns:
      true if this is transaction window
    • getWindowSize

      public Dimension getWindowSize()
      Get Window Size
      Returns:
      window size or null if not set
    • toString

      public String toString()
      To String
      Overrides:
      toString in class Object
      Returns:
      String representation
    • getHelpDoc

      public WebDoc getHelpDoc(boolean javaClient)
      Get Help HTML Document
      Parameters:
      javaClient - true if java client, false for browser
      Returns:
      help document
    • getModelUpdated

      public Timestamp getModelUpdated(boolean recalc)
      Get Model last Updated
      Parameters:
      recalc - true to always re-query from DB
      Returns:
      last updated timestamp
    • getAD_Window_UU

      public String getAD_Window_UU()
      Returns:
      AD_Window_UU
    • getGridTab

      public GridTab getGridTab(int ad_tab_id)
      Get GridTab by Tab ID
      Parameters:
      ad_tab_id -
      Returns:
      GridTab
    • getGridTab

      public GridTab getGridTab(String ad_tab_uu)
      Get GridTab by Tab UUID
      Parameters:
      ad_tab_uu -
      Returns:
      GridTab