Package org.compiere.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridWindow(GridWindowVO vo)
ConstructorGridWindow(GridWindowVO vo, boolean virtual)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposestatic GridWindow
get(Properties ctx, int WindowNo, int AD_Window_ID)
Get Grid Windowstatic GridWindow
get(Properties ctx, int WindowNo, int AD_Window_ID, boolean virtual)
Get Grid Windowint
getAD_Window_ID()
Get Window_IDString
getAD_Window_UU()
MColor
getColor()
Get ColorString
getDescription()
Get DescriptionGridTab
getGridTab(int ad_tab_id)
GetGridTab
by Tab IDGridTab
getGridTab(String ad_tab_uu)
GetGridTab
by Tab UUIDString
getHelp()
Get HelpWebDoc
getHelpDoc(boolean javaClient)
Get Help HTML DocumentIcon
getIcon()
Get Window IconImage
getImage()
Get Window IconMImage
getMImage()
Timestamp
getModelUpdated(boolean recalc)
Get Model last UpdatedString
getName()
Get NameGridTab
getTab(int i)
Get i-th MTab - null if not validint
getTabCount()
Get number of Tabsint
getTabIndex(GridTab tab)
int
getWindowNo()
Get WindowNoDimension
getWindowSize()
Get Window SizeString
getWindowType()
Get Window Typevoid
initTab(int index)
Initialise tabboolean
isSOTrx()
SO Trx Windowboolean
isTabInitialized(int index)
Is tab initializeboolean
isTransaction()
Is Transaction Windowvoid
loadCompete()
Load is complete.void
query()
Open and query first Tab (events should be enabled) and get first row.String
toString()
To String
-
-
-
Constructor Detail
-
GridWindow
public GridWindow(GridWindowVO vo)
Constructor- Parameters:
vo
- value object
-
GridWindow
public GridWindow(GridWindowVO vo, boolean virtual)
Constructor- Parameters:
vo
- value objectvirtual
-
-
-
Method Detail
-
get
public static GridWindow get(Properties ctx, int WindowNo, int AD_Window_ID)
Get Grid Window- Parameters:
ctx
- contextWindowNo
- window no for ctxAD_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
- contextWindowNo
- window no for ctxAD_Window_ID
- window idvirtual
-- 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
-
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)
GetGridTab
by Tab ID- Parameters:
ad_tab_id
-- Returns:
GridTab
-
-