Adempiere 3.5.2a

org.compiere.model
Class GridWindow

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
GridWindow(GridWindowVO vo)
          Constructor
 
Method Summary
 void dispose()
          Dispose
static GridWindow get(Properties ctx, int WindowNo, int AD_Window_ID)
          Get Grid Window
 int getAD_Window_ID()
          Get Window_ID
 CompiereColor getColor()
          Get Color
 String getDescription()
          Get Description
 String getHelp()
          Get Help
 WebDoc getHelpDoc(boolean javaClient)
          Get Help HTML Document
 Icon getIcon()
          Get Window Icon
 Image getImage()
          Get Window Icon
 Timestamp getModelUpdated(boolean recalc)
          Get Model last Updated
 String getName()
          Get Name
 GridTab getTab(int i)
          Get i-th MTab - null if not valid
 int getTabCount()
          Get number of Tabs
 int getTabIndex(GridTab tab)
           
 int getWindowNo()
          Get WindowNo
 Dimension getWindowSize()
          Get Window Size
 String getWindowType()
          Get Window Type
 void initTab(int index)
          Initialise tab
 boolean isSOTrx()
          SO Trx Window
 boolean isTabInitialized(int index)
          Is tab initialize
 boolean isTransaction()
          Is Transaction Window
 void loadCompete()
          Load is complete.
 void query()
          Open and query first Tab (events should be enabled) and get first row.
 String toString()
          To String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridWindow

public GridWindow(GridWindowVO vo)
Constructor

Parameters:
vo - value object
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

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

getIcon

public Icon getIcon()
Get Window Icon

Returns:
Icon for Window

getColor

public CompiereColor getColor()
Get Color

Returns:
AdempiereColor 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

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.