Class 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:
    Serialized Form
    • Constructor Detail

      • GridWindow

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

        public GridWindow​(GridWindowVO vo,
                          boolean virtual)
        Constructor
        Parameters:
        vo - value object
        virtual -
    • Method Detail

      • 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()
        Load is complete. Return when async load is complete Used for performance tests (Base.test())
      • isTabInitialized

        public boolean isTabInitialized​(int index)
        Is tab initialize
        Parameters:
        index -
        Returns:
        boolean
      • initTab

        public void initTab​(int index)
        Initialise tab
        Parameters:
        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()
        SO Trx Window
        Returns:
        true if SO Trx
      • query

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

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

        public GridTab getTab​(int i)
        Get i-th MTab - null if not valid
        Parameters:
        i - index
        Returns:
        MTab
      • getTabIndex

        public int getTabIndex​(GridTab tab)
      • 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 transaction
      • 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
      • getModelUpdated

        public Timestamp getModelUpdated​(boolean recalc)
        Get Model last Updated
        Parameters:
        recalc - recalculate again
        Returns:
        date
      • getAD_Window_UU

        public String getAD_Window_UU()
      • getGridTab

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